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
I would expect that code coverage is calculated/reported even though there are not test files present. Then it would mean that coverage is zero. Instead, No test files found, exiting with code 0 warning is printed out.
Reproduction
Checkout https://github.com/odockal/zero-coverage-project
Run npm run build
Run npm run test
ASSERT: no code coverage is provided
Rename src/test.ts to src/test.spec.ts
Run npm run test
ASSERT: Now the coverage is provided (zero).
Describe the bug
I would expect that code coverage is calculated/reported even though there are not test files present. Then it would mean that coverage is zero. Instead,
No test files found, exiting with code 0
warning is printed out.Reproduction
Checkout https://github.com/odockal/zero-coverage-project
Run
npm run build
Run
npm run test
ASSERT: no code coverage is provided
Rename
src/test.ts
tosrc/test.spec.ts
Run
npm run test
ASSERT: Now the coverage is provided (zero).
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: