jest.config.js 1.0 KB
Newer Older
study夏羽's avatar
study夏羽 已提交
1 2
const path = require('path');
module.exports = {
study夏羽's avatar
study夏羽 已提交
3 4 5 6 7 8 9
	testTimeout: 40000,
	reporters: [
		'default'
	],
	watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'],
	moduleFileExtensions: ['js', 'json'],
	rootDir: __dirname,
study夏羽's avatar
study夏羽 已提交
10
	/* testEnvironmentOptions: {
study夏羽's avatar
study夏羽 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23 24
		compile: true,
		"app-plus": { // 需要安装 HBuilderX
			android: {
				// appid: "", //配置manifest.json中的appid
				// package: "", //Android包名
				// executablePath: "D:/xm/online-code/uni-starter/unpackage/debug/android_debug.apk" ,// 自定义调试基座包路径
				executablePath: "HBuilderX/plugins/launcher/base/android_base.apk" ,// apk 目录
			},
			ios: {
				// uuid 必须配置,目前仅支持模拟器,可以(xcrun simctl list)查看要使用的模拟器 uuid
				id: "",
				executablePath: "HBuilderX/plugins/launcher/base/Pandora_simulator.app" // ipa 目录
			}
		}
study夏羽's avatar
study夏羽 已提交
25
	}, */
study夏羽's avatar
study夏羽 已提交
26 27 28
	testMatch: ["<rootDir>/pages/**/*test.[jt]s?(x)"],
	testPathIgnorePatterns: ['/node_modules/'],
	testSequencer: path.join(__dirname, "testSequencer.js")
study夏羽's avatar
study夏羽 已提交
29
}
study夏羽's avatar
study夏羽 已提交
30 31