Comments (3)
@carl-parrish - I've merged your PR and released Postman BDD v5.0.0 with Chai 4.0.2. I solved the backward-compatibility problem by adding version-specific subfolders under the dist
folder (e.g. dist/v3
, dist/v4
, dist/v5
)
from postman-bdd.
I just attempted to build it myself with Chai 4.0.2 I only got one failed test.
✖ should not throw
-------------------
operator: throws
expected: |-
undefined
actual: |-
{ actual: '35', expected: undefined, message: 'expected \'35\' to be a number', showDiff: false }
at: Test.test (/Users/cparrish/Desktop/Sandbox/postman-bdd/test/specs/response/body.spec.js:55:5)
Failed Tests: There was 1 failure
XML response body
✖ should not throw
total: 951
passing: 950
failing: 1
duration: 539ms
from postman-bdd.
Chai.js 4.0 just released last week, and it includes many breaking changes, so I haven't had a chance to figure out a clean upgrade path for Postman BDD. I can't just update the Chai dependency, because that will break many people's existing tests that use Postman BDD. So I need to think about the best way to expose a backward-compatible Chai 3.x version of Postman BDD and a new Chai 4.x version as well.
In the meantime, you should be able to use the existing version of Postman BDD, as long as you aren't relying on any of the new or changed functionality in Chai 4.0.
from postman-bdd.
Related Issues (17)
- Including chai-subset HOT 2
- Postman collection not able to run using newman command line HOT 4
- BDD Library gives error on checking Content-Length header HOT 2
- Integration broken and Test cases not updated back due to Test link as assertion number "1. SP-3751:Get response 200" HOT 3
- How to stop the test case if the test fails. HOT 5
- Asserting header contents HOT 2
- Invalid Chai property: result HOT 2
- after, afterEach, before, beforeEach are not defined in Postman HOT 4
- Using latest Postman HOT 1
- Run postman BDD on newman HOT 2
- try to get postman-bdd got "Unexpected '/' " result HOT 4
- before hook inside describe is not load HOT 1
- False negatives HOT 2
- Create typescript definition for postman-bdd HOT 14
- Not much of an issue HOT 5
- Array assertion expects the returned JSON to be an Object. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postman-bdd.