Skip to content

Commit

Permalink
chore: remove tsconfig override from jest
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed Mar 5, 2020
1 parent 57b41d6 commit 5329fbe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions .config/jest/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@

const { resolve } = require('path')

/**
* @type {import('ts-jest/dist/types').TsJestConfig}
*/
const tsJestConfig = {
tsConfig: {
noUnusedLocals: true,
noUnusedParameters: true,
},
}

/**
* @type {import('@jest/types').Config.InitialOptions}
*/
Expand All @@ -21,7 +11,4 @@ module.exports = {
preset: 'ts-jest',
testMatch: ['<rootDir>/**/*.test.{ts,tsx}'],
collectCoverageFrom: ['**/*.{ts,tsx}', '!**/*.d.ts', '!**/*.test.{ts,tsx}'],
globals: {
'ts-jest': tsJestConfig,
},
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": false
"noUnusedParameters": true
},
"exclude": ["**/test/**"]
}

0 comments on commit 5329fbe

Please sign in to comment.