'Jest doesn't execute matched files
Have you already seen this? My colleague with an Intel mac is able to run test with the same command but my m1 complains it doesn't find any test although it clearly says that it matched 10 files
> jest --setupFiles dotenv/config
No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
In /folder
505 files checked.
testMatch: **/__tests__/**/*.[jt]s?(x), **/?(*.)+(spec|test).[tj]s?(x) - 10 matches
testPathIgnorePatterns: .d.ts, .js - 0 matches
testRegex: - 0 matches
Pattern: - 0 matches
ELIFECYCLE Test failed. See above for more details.
I should add that running the same command in a node docker container (just mounting the folder) works as expected
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
