jest.config.js 485 字节
Newer Older
study夏羽's avatar
study夏羽 已提交
1 2
const path = require('path');
module.exports = {
Anne_LXM's avatar
Anne_LXM 已提交
3
	testTimeout: 50000,
Anne_LXM's avatar
Anne_LXM 已提交
4
	reporters: ['default'],
study夏羽's avatar
study夏羽 已提交
5 6 7
	watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'],
	moduleFileExtensions: ['js', 'json'],
	rootDir: __dirname,
A
Anne_LXM 已提交
8
	testMatch: ["<rootDir>/pages/**/*test.[jt]s?(x)","<rootDir>/uni_modules/uni-id-pages/**/*test.[jt]s?(x)"],
study夏羽's avatar
study夏羽 已提交
9
	testPathIgnorePatterns: ['/node_modules/'],
A
Anne_LXM 已提交
10 11
	testSequencer: path.join(__dirname, "testSequencer.js"),
	setupFilesAfterEnv: ['<rootDir>/jest-setup.js']
study夏羽's avatar
study夏羽 已提交
12
}
study夏羽's avatar
study夏羽 已提交
13 14