Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

illustrate that api is not in coverage #26

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

KATT
Copy link

@KATT KATT commented Jun 5, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant