From 55d9125db498291ab6ea04a49cc665324f513989 Mon Sep 17 00:00:00 2001 From: Jack Steam Date: Tue, 9 Jun 2020 15:13:49 -0500 Subject: [PATCH] Update configs --- .eslintrc.js | 1 + jest.config.js | 5 +---- tsconfig.json | 2 +- tsconfig.test.json | 6 ------ 4 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 tsconfig.test.json diff --git a/.eslintrc.js b/.eslintrc.js index b617dc1..3eb4640 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -65,6 +65,7 @@ const jest = { 'no-restricted-globals': 'off', '@typescript-eslint/require-await': 'off', '@typescript-eslint/no-empty-function': 'off', + '@typescript-eslint/no-unused-vars': 'off', }, plugins: ['jest'], } diff --git a/jest.config.js b/jest.config.js index 835b56d..6dc3024 100644 --- a/jest.config.js +++ b/jest.config.js @@ -6,12 +6,9 @@ module.exports = { globals: { 'ts-jest': { packageJson: 'package.json', - tsConfig: 'tsconfig.test.json', + tsConfig: 'tsconfig.json', }, }, setupFilesAfterEnv: ['./tests/jest.setup.ts'], - transform: { - '.(js|jsx)': '@sucrase/jest-plugin', - }, testPathIgnorePatterns: ['/node_modules/', '/playground/'], } diff --git a/tsconfig.json b/tsconfig.json index cb23c0e..2e4ddb5 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,6 @@ "target": "es2017", "lib": ["es2017", "dom", "esnext.array"], }, - "include": ["src"], + "include": ["src", "tests"], "typeAcquisition": { "enable": true } } diff --git a/tsconfig.test.json b/tsconfig.test.json deleted file mode 100644 index d0c354e..0000000 --- a/tsconfig.test.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { "noUnusedLocals": false }, - "include": ["src", "tests"], - "exclude": ["lib", "playground", "types", "tests/e2e/extension-src"] -}