You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ jest --config ./test/unit/jest.config.js
No tests found
In D:\Code\WebClient\
1319 files checked.
testMatch: D:\Code\WebClient\src\**\?(*.)test.ts?(x) - 0 matches
testPathIgnorePatterns: \\node_modules\\ - 1319 matches
Pattern: - 0 matches
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I promise you, I write unit tests! ☹
To Reproduce
Steps to reproduce the behavior:
Use the following Jest config on Windows with a test under src\file.test.ts:
/*! * Copyright Microsoft Corporation. All rights reserved. */constpath=require("path");module.exports={collectCoverageFrom: ["src/*/**/*.ts*","!src/*/**/*.stubs.ts*","!src/typings/**",],coverageDirectory: "./reports/coverage",globals: {"ts-jest": {tsConfigFile: "./tsconfig.test.json",},},moduleFileExtensions: ["js","ts","tsx",],rootDir: path.join(__dirname,"../../"),setupTestFrameworkScriptFile: "<rootDir>/test/unit/setup",testMatch: ["<rootDir>/src/**/?(*.)test.ts?(x)",],transform: {"^.+\\.tsx?$": "ts-jest",},};
Expected behavior
Under 23.1.0, it finds test files.
Under 23.2.0, it does not.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
I promise you, I write unit tests! ☹
To Reproduce
Steps to reproduce the behavior:
src\file.test.ts
:Expected behavior
Under 23.1.0, it finds test files.
Under 23.2.0, it does not.
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: