Greetings! I'm wondering if we have a dedicated ap...
# pact-js
m
Greetings! I'm wondering if we have a dedicated approach for writing Pact contract tests with Vitest instead of using Jest? It would also be nice to know if anyone already tried to migrate existing tests from Jest (using the
jest-pact
adapter) to Vitest
y
I don’t really use jest-pact anymore as due to different lifecycle methods with the new rust based core, the experience with vanilla pact-js and jest is decent enough. some reported issues with vitest, you can search via pact-js issues. I have an example I tried out last week https://github.com/YOU54F/vscode-pact-snippets/pull/2/files there is no reason pact-js shouldn’t work with any javascript test runner, so best attempting it and seeing how far you get, and reporting if there are any issues. There are too many test frameworks for us to test and keep up to date with them all, so end users feedback from actually trying it out is best
thankyou 1
👀 1