Closed JFGHT closed 5 years ago
do you get a chance to set jest.pathToJest
to yarn test
per troubleshooting?
{
"jest.pathToJest": "yarn test"
}
I faced the similar issue with moduleNameMapper
and after adding "jest.pathToJest": "yarn test"
to config it was fixed!
Thanks @connectdotz
Seems to fix my issue. Thanks!
Environment
node -v
: v10.13.0npm -v
: 6.4.1 && yarn 1.16.0npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): @vue/cli-plugin-unit-jest@3.7.0 └── jest@23.6.0Operating system: Ubuntu 18.
Prerequisite
npm run test
ornode_modules/.bin/jest
)yarn test
Steps to Reproduce
Create Vue application with Vue-cli (last version).
vue.ts
file, the mainfile to run Vue's instance (affected code):jest.config.js
:Relevant Debug Info
Configuration error:
Expected Behavior
Normal initialization, run test and start watch mode.
Actual Behavior
Show that error msg in output and get stuck at Start watching mode.
Worth to mention
I do have another
jest.config.js
file inside root/functions because I'm testing Google Cloud Functions as well.The code: