Skip to content

Commit

Permalink
Include JSX files in the coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
rikurauhala committed Jun 4, 2024
1 parent 3465051 commit c8a93cb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .nycrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"all": true,
"include": ["services/frontend/src/**/*.*"]
"include": ["services/frontend/src/**/*.js", "services/frontend/src/**/*.jsx"],
"extends": "./nyc-config.js"
}
7 changes: 7 additions & 0 deletions nyc-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* eslint-disable import/no-extraneous-dependencies */
const { parserPlugins } = require('@istanbuljs/schema').defaults.nyc

module.exports = {
cache: false,
parserPlugins: parserPlugins.concat('typescript', 'jsx'),
}
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"homepage": "https://github.com/UniversityOfHelsinkiCS/oodikone#readme",
"devDependencies": {
"@cypress/code-coverage": "^3.12.39",
"@istanbuljs/schema": "^0.1.3",
"cypress": "^13.2.0",
"eslint": "^8.56.0",
"eslint-config-airbnb": "^19.0.4",
Expand Down

0 comments on commit c8a93cb

Please sign in to comment.