Jest: No tests found, exiting with code 1

Created on 9 Feb 2019  路  3Comments  路  Source: facebook/jest

馃挜 Regression Report

After Jest update from 23.6.0 to 24.1.0, my tests at AppVeyor stopped being found:

Last working version

23.6.0

Worked up to version:
23.6.0

Stopped working in version:
24.1.0,

To Reproduce

Steps to reproduce the behavior:

https://ci.appveyor.com/project/iondrimba/react-weather-app/builds/22247241

Expected behavior

A clear and concise description of what you expected to happen.

Link to repl or repo (highly encouraged)

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.

Run npx envinfo --preset jest

Paste 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
Regression

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 testMatch https://jestjs.io/docs/en/configuration#testmatch-array-string which - after a quick look at your repo - should match your .spec.js files

All 3 comments

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 馃憤

Was this page helpful?
0 / 5 - 0 ratings