After Jest update from 23.6.0 to 24.1.0, my tests at AppVeyor stopped being found:
23.6.0
Worked up to version:
23.6.0
Stopped working in version:
24.1.0,
Steps to reproduce the behavior:
https://ci.appveyor.com/project/iondrimba/react-weather-app/builds/22247241
A clear and concise description of what you expected to happen.
https://github.com/iondrimba/react-weather-app
https://ci.appveyor.com/project/iondrimba/react-weather-app/builds/22247241
Please provide either a repl.it demo or a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
npx envinfo --preset jestPaste the results here:
npx: installed 1 in 1.468s
System:
OS: Windows 8.1
CPU: (2) ia32 Intel(R) Xeon(R) CPU E5-2697 v3 @ 2.60GHz
Binaries:
Node: 11.9.0 - C:\Program Files (x86)\nodejs\node.EXE
Yarn: 1.9.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.7.0 - C:\Users\appveyor\AppData\Roaming\npm\npm.CMD
This is likely due to the (breaking change) upgrade to Micromatch 3: https://github.com/facebook/jest/pull/6650
Try using the default testMatch https://jestjs.io/docs/en/configuration#testmatch-array-string which - after a quick look at your repo - should match your .spec.js files
Thanks @jeysal will try that out 馃憤
It worked @jeysal 馃帀 https://github.com/iondrimba/react-weather-app/pull/80/files
Most helpful comment
This is likely due to the (breaking change) upgrade to Micromatch 3: https://github.com/facebook/jest/pull/6650
Try using the default
testMatchhttps://jestjs.io/docs/en/configuration#testmatch-array-string which - after a quick look at your repo - should match your.spec.jsfiles