mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-26 20:42:18 +03:00
de68a86c8c
* refactor(tauri.js): move command code into helpers * reafactor(tauri.js): move command helpers to api dir * fix(tauri.js/tests): import tauricon from proper dir * fix(tauri.js/tests): add api dir to moduleNameMapper
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
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>/bin/**/*.js',
|
|
'<rootDir>/helpers/**/*.js',
|
|
'<rootDir>/api/**/*.js'
|
|
],
|
|
coverageReporters: ['json-summary', 'text', 'lcov'],
|
|
coverageThreshold: {
|
|
global: {
|
|
// branches: 50,
|
|
// functions: 50,
|
|
// lines: 50,
|
|
// statements: 50
|
|
}
|
|
},
|
|
testMatch: [
|
|
'<rootDir>/test/jest/__tests__/**/*.spec.js',
|
|
'<rootDir>/test/jest/__tests__/**/*.test.js'
|
|
],
|
|
moduleFileExtensions: ['js', 'json'],
|
|
moduleNameMapper: {
|
|
'^~/(.*)$': '<rootDir>/$1',
|
|
'^bin/(.*)$': '<rootDir>/bin/$1',
|
|
'^helpers/(.*)$': '<rootDir>/helpers/$1',
|
|
'^api/(.*)$': '<rootDir>/api/$1',
|
|
'^templates/(.*)$': '<rootDir>/templates/$1',
|
|
'^test/(.*)$': '<rootDir>/test/$1',
|
|
'../../package.json': '<rootDir>/package.json'
|
|
},
|
|
transform: {}
|
|
}
|