jest.config.js 686 字节
Newer Older
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 13 14
  testPathIgnorePatterns: [
      '/node_modules/',
      '<rootDir>/pages/API/download-file/download-file.test.js',
      '<rootDir>/pages/API/upload-file/upload-file.test.js',
      '<rootDir>/pages/API/get-battery-info/get-battery-info.test.js',
      '<rootDir>/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js'
15
    ],
DCloud-WZF's avatar
DCloud-WZF 已提交
16
  setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
Y
yurj26 已提交
17
}