From 5329fbeccc16b5e4b682fcb90a1d88253d85e6c1 Mon Sep 17 00:00:00 2001 From: yarastqt Date: Fri, 6 Mar 2020 00:36:22 +0300 Subject: [PATCH] chore: remove tsconfig override from jest --- .config/jest/jest.config.js | 13 ------------- tsconfig.json | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.config/jest/jest.config.js b/.config/jest/jest.config.js index 59e7f2eb..182eed58 100644 --- a/.config/jest/jest.config.js +++ b/.config/jest/jest.config.js @@ -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} */ @@ -21,7 +11,4 @@ module.exports = { preset: 'ts-jest', testMatch: ['/**/*.test.{ts,tsx}'], collectCoverageFrom: ['**/*.{ts,tsx}', '!**/*.d.ts', '!**/*.test.{ts,tsx}'], - globals: { - 'ts-jest': tsJestConfig, - }, } diff --git a/tsconfig.json b/tsconfig.json index deee1dec..c4df3787 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,7 @@ "noFallthroughCasesInSwitch": true, "noImplicitReturns": true, "noUnusedLocals": true, - "noUnusedParameters": false + "noUnusedParameters": true }, "exclude": ["**/test/**"] }