Looking at `jest-pact` I was able to get the v2 wo...
# pact-js
é
Looking at
jest-pact
I was able to get the v2 working but v3 example, but the README code doesn't work
Copy code
1 import { pactWith } from 'jest-pact/v3';
Cannot find module 'jest-pact/v3' or its corresponding type declarations.ts(2307)
Copy code
execute('some api call', (mockserver) =>
      api(mockserver.url)
        .getCustomers()
        .then((customers) => {
          expect(customers.length).toEqual(CUSTOMERS_COUNT);
        }),
    );
Expect must be inside of a test block.eslint[jest/no-standalone-expect](https://github.com/jest-community/eslint-plugin-jest/blob/v27.1.7/docs/rules/no-standalone-expect.md)
Is the v3 usable?
I submitted a tiny PR to update the doc https://github.com/pact-foundation/jest-pact/pull/218
t
Hmmm. Either I don’t understand something, or that import change isn’t right. I’ll have a look.
Thanks for the PR, though!
Update: I am an idiot, and was reading the diff the wrong way round. It definitely should be
jest-pact/dist/v3
and not
jest-pact/v3
. Although, really that should be part of the default export.