playwright-jest-examples
playwright-jest-examples copied to clipboard
illustrate that api is not in coverage
Made this PR to illustrate an issue.
When running this test the api handlers are not covered by the coverage.
Output from npm run test
Coverage file (11500 bytes) written to .nyc_output/coverage.json
------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
------------|---------|----------|---------|---------|-------------------
All files | 95.24 | 83.33 | 100 | 94.74 |
components | 92.86 | 83.33 | 100 | 91.67 |
App.tsx | 92.86 | 83.33 | 100 | 91.67 | 6
pages | 100 | 100 | 100 | 100 |
_app.tsx | 100 | 100 | 100 | 100 |
index.tsx | 100 | 100 | 100 | 100 |
------------|---------|----------|---------|---------|-------------------
Expected
I'd expect /pages/api/hello.ts to be covered above