GitHub
03/22/2024, 3:24 PMERROR ThreadId(01) pact_ffi::mock_server::handles: Failed to parse the value: expected value at line 1 column 1
Steps to reproduce
1. git clone https://github.com/pact-foundation/pact-js.git
2. Open ./pact-js/examples/typescript/package.json and change
"@pact-foundation/pact": "file:../../dist/",
to
"@pact-foundation/pact": "^12.1.3",
or
"@pact-foundation/pact": "^12.3.0",
(it started showing this errors starting 12.1.3)
3. From ./pact-js/examples/typescript/
run npm install
4. Open ./pact-js/examples/typescript/test/get-dog.spec.ts
Change log level to 'error' and add pactfileWriteMode: 'merge' into Pact configuration:
const provider = new Pact({
// .. leave as is
logLevel: 'error',
pactfileWriteMode: 'merge'
});
6. From ./pact-js/examples/typescript run:
npm run test
7. See error messages in console
Thank you
pact-foundation/pact-js