Comments (7)
Same mistake done by many around me including me :)
from pact-js.
@MichaelSu1983 pact-node
is just the mock server, if I'm not mistaken. pact-js
leverages pact-node
and has a bunch of other goodies like adding interactions.
from pact-js.
Great!
The short answer is stick with Pact JS. Pact Node essentially wraps a bunch of utilities that are required to do contract testing, Pact JS is the DSL you write tests with. Eventually, Pact Node will be deprecated along with a bunch of other dependencies (pact-mock-service, pact-porvider-verifier etc.)
from pact-js.
To be able to run these tests, you first need to run npm install
in the project root. The test refers to a relative module path to the pact
dependency, which requires this package.
Can you please try this first and confirm if that addresses the issue?
from pact-js.
Thanks @mefellows . I did that and the issue was resolved.
Since I got your attention, I notice there're two libraries - pact-js and pact-node. are they having same capabilities? I don't find examples in pact-node but assume they should be working in the same way, but just with different apis, when writing consumer tests.
from pact-js.
@Blackbaud-AlexKingman Pretty much, it also wraps the verifier process.
from pact-js.
@mefellows
I did what you said.
But it still shows that same error.
Is there any other way?
from pact-js.
Related Issues (20)
- High Prototype Pollution risk caused by lodash.omitby/4.6.0 scanned by BlackDuck for @pact-foundation/pact@^12.1.2 HOT 3
- Improve developer experience around consumer pact testing HOT 2
- RFC: Remove CLI & Standalone API (Pact Standalone Tools - Ruby), and migrate into sister package pact-js-cli enhancement
- RFC: Support Alpine
- RFC: Pact JS V9.x - Update to latest V2 standalone / Include ARM64 Platforms HOT 1
- Because Maths: invalid pact specification version supplied: 5 HOT 8
- V4 Asynchronous Messages
- Bug: Corporate Proxy not supported during verification
- TypeError: ffi.pactffiMessageGivenWithParams is not a function HOT 2
- Support combining matching rules HOT 3
- `eachLike` behaves like `atLeastOneLike` when min is not explicitly set - contrary to documentation HOT 5
- payload changed by pact between consumer test and provider test HOT 6
- Message provider verification error: "Caught panic with error: failed printing to stdout" HOT 8
- CVE check denying [email protected] which is dependent on by pact-foundation/pact HOT 3
- V3 Matchers package missing matchers from V2
- BadSignature error when approaching broker on HTTPS HOT 5
- Vitest - Pact Verifier fails with 3 or more interactions HOT 8
- V4InteractionWithCompleteRequest is unimplemented HOT 9
- Allow using `new ArrayBuffer(0)` in withRequest.body to be honest in the contract tests HOT 1
- MatchersV3.reify doesn't extract payload from MatchersV3.nullValue() HOT 4
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 pact-js.