Skip to content

Commit

Permalink
feat(jest.config.js): update collectCoverageFrom paths to include spe…
Browse files Browse the repository at this point in the history
…cific files for better test coverage

feat(package.json): add coverage script to run jest with coverage flag for generating test coverage report
style(readme.md): update image alt text for clarity and consistency
  • Loading branch information
multipliedtwice committed Jul 27, 2024
1 parent 6b762f5 commit f6bff93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
collectCoverageFrom: ['src/*.spec.{js,ts}'],
collectCoverageFrom: ['src/get-allowed-query.ts', 'src/index.ts', 'src/merge.ts'],
modulePathIgnorePatterns: ['<rootDir>/dist/'],
testEnvironment: 'node',
preset: 'ts-jest',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"scripts": {
"test": "jest",
"build": "tsc",
"prepublish": "npm run build"
"prepublish": "npm run build",
"coverage": "jest --coverage"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# GraphQL Query Purifier
[![Coverage](https://img.shields.io/codecov/c/github/multipliedtwice/graphql-query-purifier/main.svg)](https://codecov.io/gh/multipliedtwice/graphql-query-purifier)

![backticks-codeblocks](./static/typegraphql-prisma-purifier.png)
![typegraphql-prisma-purifier](./static/typegraphql-prisma-purifier.png)

### [Demo](https://github.com/multipliedtwice/graphql-query-purifier-example)

Expand Down

0 comments on commit f6bff93

Please sign in to comment.