jest.config.js 750 字节
Newer Older
W
wanganxp 已提交
1
// 自动化测试
Y
yurj26 已提交
2
module.exports = {
3
  testTimeout: 30000,
DCloud-WZF's avatar
DCloud-WZF 已提交
4 5 6 7
  reporters: ['default'],
  watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'],
  moduleFileExtensions: ['js', 'json'],
  rootDir: __dirname,
杜庆泉's avatar
杜庆泉 已提交
8
  testMatch: ["<rootDir>/pages/**/*test.[jt]s?(x)"],
9 10 11 12
  testPathIgnorePatterns: [
      '/node_modules/',
      '<rootDir>/pages/API/download-file/download-file.test.js',
      '<rootDir>/pages/API/upload-file/upload-file.test.js',
13 14
      '<rootDir>/pages/API/get-battery-info/get-battery-info.test.js',
      '<rootDir>/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js',
dcloud_wdl's avatar
dcloud_wdl 已提交
15
      '<rootDir>/pages/webview-screenshot/webview-screenshot.test.js'
16
    ],
DCloud-WZF's avatar
DCloud-WZF 已提交
17
  setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
Y
yurj26 已提交
18
}