Skip to content

Commit

Permalink
Exclude .d.ts files from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Mar 2, 2018
1 parent d2a732a commit 2f627ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/zanata-frontend/src/jest.config.js
Expand Up @@ -2,4 +2,5 @@
var config = require('./jest.config.json')
// we ave to use a separate json file because IntelliJ JEST plugin only accepts
// json file as JEST config
// See https://youtrack.jetbrains.com/issue/WEB-30009 - perhaps it works with 2017.3+?
module.exports = config
3 changes: 2 additions & 1 deletion server/zanata-frontend/src/jest.config.json
Expand Up @@ -3,7 +3,8 @@
"collectCoverageFrom": [
"app/**/*.{js,jsx,ts,tsx}",
"!**/node_modules/**",
"!app/**/*.story.{js,jsx,ts,tsx}"
"!app/**/*.story.{js,jsx,ts,tsx}",
"!**/*.d.ts"
],
"coverageReporters": [
"cobertura",
Expand Down

0 comments on commit 2f627ff

Please sign in to comment.