jest.config.js 586 字节
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 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'
    ],
DCloud-WZF's avatar
DCloud-WZF 已提交
15
  setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
Y
yurj26 已提交
16
}