Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@case-contract-testing/case
Advanced tools
Read the documentation here. Documentation is currently in-progress. Feedback welcome!
Case is a next-generation consumer-driven contract testing framework, building on many of the lessons from maintaining the excellent Pact contract testing framework. It is our belief that contract testing is the best way to get deployment confidence for your applications and services.
Case releases follow semantic versioning, with two additional restrictions:
Breaking changes will always be detailed in the changelog.
Incomplete documentation is here. By way of apology for the unstable API, at least one new page of documentation will be added every time a breaking change is released during the beta period.
WARNING: THE API IS UNSTABLE AND MAY CHANGE BETWEEN MINOR VERSIONS
Case is now available and should work for both client and server driven http/https contracts. Feedback on the Case API / DSL and (especially) naming conventions very welcome. However, the following caveats should be kept in mind:
If you want to get started immediately, we recommend starting with either the client-driven end-to-end test, or the server-driven end-to-end test. Make sure you remove printResults: false
.
You can follow the detailed progress by reading the maintainer todo list. These caveats will be updated as progress is made.
npm install --save-dev @case-contract-testing/case
You may also need the peer dependencies:
npm install --save-dev jest@^29.4.3
TODO: Pull this section out and expand into detailed documentation
Case is intended to solve some of the pain points when using Pact - if you are not hitting those pain points, there is no need to switch to using Case (unless you want to or something).
Case has a very similar philosophy to Pact. You write your pacts as a contract, which is a series of examples.
Like Pact, Case requires a broker to operate. To maximise Pact compatibility, Case works with the Pact broker. We recommend either:
We plan for Case to always be compatible with both of these brokers.
For the gory details, you can see the implementation notebook / todo list here
FAQs
Next-generation contract testing suite
We found that @case-contract-testing/case demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.