Open msilesgap opened 1 year ago
I solved the previous issue, it looks like some node dependencies were missing, I also added the contract folder in the path. It looks like it's not in the package.json line 9
Currently, I'm getting another error FAIL tests/contract/consumer/ClientsConsumer.spec.js ● Test suite failed to run
Cannot find module '@pact-foundation/pact' from '__tests__/contract/helpers/pactSetup.js'
1 | const path = require("path")
> 2 | const Pact = require("@pact-foundation/pact").Pact
| ^
3 |
4 | global.port = 8081
5 | global.provider = new Pact({
at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
at Object.<anonymous> (__tests__/contract/helpers/pactSetup.js:2:14)
Hi @msilesgap Thanks for that, if you download the release 1.0.2 then indeed is broken, I can't update this now because TAU is not updating the courses for a while, so I will keep the issue here in case anybody else faces it for now.
I also suggest to delete the package-lock.json and npm install
again
I was following the setup from Test Automation University, when I'm running the command npm run test:consumer I'm getting the error below, I'm wondering if I'm missing something here, Thanks
● Validation Error:
Module ./tests/helpers/pactSetup.js in the setupFiles option was not found.