From 72b5b38d6e3a8204dedf9fdc3f97710dfdd62b7f Mon Sep 17 00:00:00 2001 From: Peng Jie Date: Sun, 28 Jun 2020 07:14:37 +0800 Subject: [PATCH] chore(test): update setupFiles and remove duplicate jest config (#44) --- jest.config.js | 2 +- jestConfig.json | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 jestConfig.json diff --git a/jest.config.js b/jest.config.js index 82ec8a7..4e55560 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,6 +10,6 @@ module.exports = { }, testMatch: ['**/?(*.)+(spec|test).ts?(x)'], transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'], - setupFiles: ['/setup.ts'], + setupFiles: ['/setup.[jt]s?(x)'], moduleFileExtensions: ['ts', 'tsx', 'js'], }; diff --git a/jestConfig.json b/jestConfig.json deleted file mode 100644 index 18d6830..0000000 --- a/jestConfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "setupFiles": ["/test/setup.js"] -}