Giter VIP home page Giter VIP logo

Comments (7)

rahulmr avatar rahulmr commented on September 2, 2024 4

Same mistake done by many around me including me :)

from pact-js.

Blackbaud-AlexKingman avatar Blackbaud-AlexKingman commented on September 2, 2024 1

@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.

mefellows avatar mefellows commented on September 2, 2024 1

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.

mefellows avatar mefellows commented on September 2, 2024

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.

MichaelSu1983 avatar MichaelSu1983 commented on September 2, 2024

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.

mefellows avatar mefellows commented on September 2, 2024

@Blackbaud-AlexKingman Pretty much, it also wraps the verifier process.

from pact-js.

Kunj-Choksi avatar Kunj-Choksi commented on September 2, 2024

@mefellows
I did what you said.
But it still shows that same error.
Is there any other way?

from pact-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.