https://github.com/shereef/graphql-jest-coverage-attribute
This repo was created to outline an issue running `npm run test:cov` would get us less than a 100% coverage caused by the function in the attribute `@Query(() => String)` in `src/app.resolver.ts` in the hopes that we would get a better solution other than `/* istanbul ignore next */` right before the function
https://github.com/shereef/graphql-jest-coverage-attribute
Last synced: about 1 year ago
JSON representation
This repo was created to outline an issue running `npm run test:cov` would get us less than a 100% coverage caused by the function in the attribute `@Query(() => String)` in `src/app.resolver.ts` in the hopes that we would get a better solution other than `/* istanbul ignore next */` right before the function
- Host: GitHub
- URL: https://github.com/shereef/graphql-jest-coverage-attribute
- Owner: Shereef
- Created: 2022-11-18T20:36:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T18:15:46.000Z (over 3 years ago)
- Last Synced: 2025-02-04T04:29:07.148Z (over 1 year ago)
- Language: TypeScript
- Size: 740 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo was created to outline an issue running `npm run test:cov` would get us less than a 100% coverage caused by the function in the attribute `@Query(() => String)` in `src/app.resolver.ts` in the hopes that we would get a better solution other than `/* istanbul ignore next */` right before the function
```
$ npm run test:cov
> graphql-jest-coverage-attribute@0.0.1 test:cov
> jest --coverage
PASS src/app.resolver.spec.ts
AppResolver
root
✓ should return "Hello World!" (6 ms)
-----------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------------|---------|----------|---------|---------|-------------------
All files | 85.71 | 100 | 50 | 100 |
app.resolver.ts | 85.71 | 100 | 50 | 100 |
-----------------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 2.227 s, estimated 3 s
Ran all test suites.
```