Giter VIP home page Giter VIP logo

Comments (5)

mefellows avatar mefellows commented on August 29, 2024 1

It makes sense to me @benquinteros, but i'll let Tim/Yousaf comment as they are the maintainers of this repo.

from jest-pact.

TimothyJones avatar TimothyJones commented on August 29, 2024 1

I remembered why we had a new type - it's because we add timeout to the options. But, you're right that it jest-pact should use the upstream PactOptions directly.

I've fixed this in #188 , which

  • Removes the definition of PactOptions
  • Introduces JestPactOptions, which unions the upstream PactOptions object and includes the timeout

I wanted to hold off merging for a bit of discussion - simple questions, but worth thinking about before we release a version 1:

  • Should JestPactOptions be called PactOptions? I'm not sure. I thought about separating out the Jest-specific options, but I'm not a big fan of having two ways of specifying options - users of this code shouldn't have to know what part of the framework they're configuring
  • For extra settings, should we put them under a namespace? jestTimeout? jest.Timeout?

It's worth keeping in mind that currently this is really also jasmine-pact as well as jest-pact, since it exclusively uses jasmine features.

from jest-pact.

TimothyJones avatar TimothyJones commented on August 29, 2024 1

I forgot to close this issue before - this is fixed in 0.5.3.

It's technically a breaking change if you've explicitly used the type PactOptions, because I've renamed it to JestPactOptions - however, most people probably use it implicitly.

Since this is getting more traction, we'll release a version 1.0.0 soon, which will let us be clearer about breaking changes.

from jest-pact.

mefellows avatar mefellows commented on August 29, 2024

I'm wondering if it makes sense to have PactOptions duplicated in this package - could it not just reference the upstream PactOptions interface directly? This would mean it's always up-to-date with pact?

from jest-pact.

YOU54F avatar YOU54F commented on August 29, 2024

agree with @mefellows, it is better to reference the interface from pact-js directly. Happy for a PR proposal 👍 otherwise I look to address in the next couple of days

from jest-pact.

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.