From 96f3dbbec64ff89186455c2c2fc02863757e5645 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Wed, 22 Apr 2020 11:10:01 +0800 Subject: [PATCH] feat: add jest.config.js --- template/common/jest.config.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 template/common/jest.config.js diff --git a/template/common/jest.config.js b/template/common/jest.config.js new file mode 100644 index 0000000..ccfbbbb --- /dev/null +++ b/template/common/jest.config.js @@ -0,0 +1,14 @@ +module.exports = { + globalTeardown: '@dcloudio/uni-automator/dist/teardown.js', + testEnvironment: '@dcloudio/uni-automator/dist/environment.js', + testEnvironmentOptions: {}, + testTimeout: 15000, + reporters: [ + 'default' + ], + watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'], + moduleFileExtensions: ['js', 'json'], + rootDir: __dirname, + testMatch: ['/src/__tests__/**/*spec.[jt]s?(x)'], + testPathIgnorePatterns: ['/node_modules/'] +}