Answer the question
In order to leave comments, you need to log in
Why doesn't JEST see tests?
Jest doesn't see tests. Maybe the regex isn't working? The name of the test of the form my-component.spec.ts which I already put right in the root of __tests_. And still he doesn't see.
module.exports = {
roots: ["<rootDir>/src"],
transform: {
"^.+\\.tsx?$": "ts-jest"
},
testRegex: "/__tests__/.*.spec.tsx?$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"]
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question