tau-pact-nodejs-course icon indicating copy to clipboard operation
tau-pact-nodejs-course copied to clipboard

Getting error running npm run test:consumer

Open msilesgap opened this issue 1 year ago • 3 comments

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

[email protected] test:consumer /Users/moisessiles/Downloads/API/tau-pact-nodejs-course-1.0.1 jest tests/contract/consumer --runInBand --setupFiles ./tests/helpers/pactSetup.js --setupTestFrameworkScriptFile=./tests/helpers/pactTestWrapper.js

● Validation Error:

Module ./tests/helpers/pactSetup.js in the setupFiles option was not found. <rootDir> is: /Users/moisessiles/Downloads/Documents/API/tau-pact-nodejs-course-1.0.1

Configuration Documentation: https://jestjs.io/docs/configuration.html

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] test:consumer: jest __tests__/contract/consumer --runInBand --setupFiles ./__tests__/helpers/pactSetup.js --setupTestFrameworkScriptFile=./__tests__/helpers/pactTestWrapper.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] test:consumer script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/moisessiles/.npm/_logs/2023-04-20T23_02_45_181Z-debug.log

msilesgap avatar Apr 20 '23 23:04 msilesgap