Denis Haskin
11/30/2022, 10:12 PMFAIL src/__tests__/pact/consumer.pact.ts
● Test suite failed to run
The v4 package is currently in beta and requires the 'ENABLE_FEATURE_V4' environment variable to be set
> 1 | import { Pact } from '@pact-foundation/pact';
| ^
2 | import path from 'path';
3 | import { Express } from 'express';
4 | import request from 'supertest';
at Object.<anonymous> (node_modules/@pact-foundation/src/v4/index.ts:10:9)
at Object.<anonymous> (node_modules/@pact-foundation/src/index.ts:87:1)
at Object.<anonymous> (src/__tests__/pact/consumer.pact.ts:1:1)
version in package.json (same as in the other project where it works):
"@pact-foundation/pact": "^10.1.4",Aaron
11/30/2022, 11:17 PMAaron
11/30/2022, 11:21 PMMatt (pactflow.io / pact-js / pact-go)
"@pact-foundation/pact": "^10.1.4",
I don’t think the V4 interface was in that package, so my guess is that you actually have a later version installed (^ allows minor versions to be installed)Matt (pactflow.io / pact-js / pact-go)
Aaron
11/30/2022, 11:31 PMnpm i should fix it.Matt (pactflow.io / pact-js / pact-go)
Denis Haskin
12/01/2022, 2:35 AMDenis Haskin
12/01/2022, 2:38 AMMatt (pactflow.io / pact-js / pact-go)