Closed schowave closed 2 years ago
Hi thanks for the report @schowave, I have just come across this looks like it occurred in 10.0.0-beta.61+
, will get an update out probably tomorrow now as it's quite late, and look to mainline the jest-pact beta branch now that pact-js v3 is GA
released in 0.10.1
of pact-js supporting pact-js 10.0.2
+
Software versions
Please provide at least OS and version of pact-js
Issue Checklist
Please confirm the following:
Expected behaviour
Compiling the source code and importing
import { pactWith } from "jest-pact/v3"; works.
Actual behaviour
The test is not compiling, because in the jest-pact/v3/index.js there is an import
var pactV3 = require("@pact-foundation/pact/v3"); which should be (with beta.62)
var pactV3 = require("@pact-foundation/pact");
and then compilation works again.
Relevant log files
` Cannot find module '@pact-foundation/pact/v3' from '../../node_modules/.pnpm/jest-pact@0.9.0-beta.v3_bd5bdb562262fe533fb9de65840e42f8/node_modules/jest-pact/v3/index.js'