-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENOENT: No such file coverage-summary.json #17
Comments
I tried running
So it seems like a version problem |
There are couple of things to be added: Make sue you have the jest command added under your package json script:
Also make sure you have all the jest output files going into coverage folder. For that you need to added the below config in jest.config.js: |
Thanks. But is the same. It keeps returning the same error. Now, in a new blank project. My jest.config: module.exports = {
preset: "ts-jest",
testEnvironment: "jsdom",
transform: {
".(ts|tsx)": "ts-jest",
},
moduleFileExtensions: ["ts", "tsx", "js", "json"],
coverageDirectory: "coverage",
}; My package.json scripts:
Coverage runs great, it just fail when I use this tool. Results:
Regards |
Make sure you have
this reporter is responsible for generating the |
Thanks, but that's also there. As someone mentioned here, it's a version issue. Currently, this package is outdated in relation with its dependencies. |
I had this issue. FIX was to ensure you dont have a [Running on jest 26.6.0] |
I had this issue on windows, for me the solution was to remove the quotes from input and output: ( "jest": "^26.6.3", "jest-coverage-badges": "^1.1.2") |
For those who are still experiencing this issue, if you got a specific
|
@hollandjake and @elgsantos (here and here). So, @pamepeixinho I think this issue can be closed. |
Can be closed imo. Basically, copy /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
// here:
coverageReporters: ["json-summary", "text", "lcov"],
}; |
Worked for me, thanks!!
|
For me worked when I add some files an directories to ingore, remember to check this too.
|
Hi
I set it up exactly as explained in master's README but it fails with below error. Using Jest v26.0.1:
Thanks
The text was updated successfully, but these errors were encountered: