Skip to content
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

Branch not coverad #137

Closed
elvesbd opened this issue Dec 14, 2022 · 1 comment
Closed

Branch not coverad #137

elvesbd opened this issue Dec 14, 2022 · 1 comment

Comments

@elvesbd
Copy link

elvesbd commented Dec 14, 2022

I'm using version 16.18.1 of node and my application is built with NestJS framework, when configuring @swc/jest in my project my tests run perfectly, but the coverage report says that only 50% of the branches were covered. I'm using "@swc/core": "^1.3.23", "@swc/jest": "^0.2.24".
.swcrc { "sourceMaps": true, "module": { "type": "commonjs", "strict": true }, "jsc": { "target": "es2020", "parser": { "syntax": "typescript", "decorators": true }, "transform": { "legacyDecorator": true, "decoratorMetadata": true }, "keepClassNames": true } }
`jest.config.js
module.exports = {
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: 'src',
testRegex: '.\.spec\.ts$',
transform: {
'^.+\.(t|j)s$': '@swc/jest',
},
collectCoverageFrom: ['**/
.(t|j)s'],
coverageDirectory: '../coverage',
testEnvironment: 'node',
};

`

@kdy1
Copy link
Member

kdy1 commented Jan 11, 2023

swc-project/swc#3854

@kdy1 kdy1 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants