mirror of
https://github.com/tauri-apps/tauri-webpack.git
synced 2026-02-04 10:41:18 +01:00
36 lines
807 B
JavaScript
36 lines
807 B
JavaScript
module.exports = {
|
|
globals: {
|
|
__DEV__: true
|
|
},
|
|
setupFilesAfterEnv: ['<rootDir>/test/jest/jest.setup.js'],
|
|
// noStackTrace: true,
|
|
// bail: true,
|
|
// cache: false,
|
|
// verbose: true,
|
|
// watch: true,
|
|
collectCoverage: true,
|
|
coverageDirectory: '<rootDir>/test/jest/coverage',
|
|
collectCoverageFrom: [
|
|
'<rootDir>/plugins/*.js',
|
|
'<rootDir>/index.js'
|
|
],
|
|
coverageReporters: ['json-summary', 'text', 'lcov'],
|
|
coverageThreshold: {
|
|
global: {
|
|
// branches: 50,
|
|
// functions: 50,
|
|
// lines: 50,
|
|
// statements: 50
|
|
}
|
|
},
|
|
testMatch: [
|
|
'<rootDir>/test/jest/__tests__/**/*.spec.js'
|
|
],
|
|
moduleFileExtensions: ['js', 'json'],
|
|
moduleNameMapper: {
|
|
'^~/(.*)$': '<rootDir>/$1',
|
|
'^plugins/(.*)$': '<rootDir>/plugins/$1'
|
|
},
|
|
transform: {}
|
|
}
|