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/'] +}