GitHub
09/07/2023, 10:39 AMreact-scripts test --testTimeout 30000 pact.spec.js runs the consumer test adapted from the Getting Started tutorial
Actual behaviour
FAIL src/builder/pact/api.pact.spec.js
● Test suite failed to run
TypeError: createColors is not a function
> 1 | import { PactV3 } from '@pact-foundation/pact';
| ^
2 |
3 | const mockProvider = new PactV3({
4 | logLevel: 'debug',
at Object.<anonymous> (node_modules/pino-pretty/lib/colors.js:19:25)
at Object.<anonymous> (node_modules/pino-pretty/index.js:8:16)
at Object.<anonymous> (node_modules/@pact-foundation/pact-core/src/logger/pino.ts:2:1)
Steps to reproduce
import { PactV3 } from '@pact-foundation/pact';
const mockProvider = new PactV3({
logLevel: 'debug',
consumer: 'pactflow-platform-ui',
// provider: 'pactflow-graphql'
});
describe('GQL Pact tests', () => {
});
Relevant log files
As above - log level set to debug on the configuration of PactV3
pact-foundation/pact-jsGitHub
09/11/2023, 10:50 PM