mirror of
https://github.com/VisActor/VChart
synced 2024-11-22 17:26:19 +00:00
35 lines
900 B
JavaScript
35 lines
900 B
JavaScript
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
runner: 'jest-electron/runner',
|
|
testEnvironment: 'jest-electron/environment',
|
|
testRegex: '/__tests__/.*\\.test\\.(js|ts)$',
|
|
silent: true,
|
|
globals: {
|
|
'ts-jest': {
|
|
resolveJsonModule: true,
|
|
esModuleInterop: true,
|
|
experimentalDecorators: true,
|
|
module: 'ESNext',
|
|
tsconfig: './tsconfig.test.json'
|
|
}
|
|
},
|
|
verbose: true,
|
|
collectCoverage: true,
|
|
coverageReporters: ['json-summary', 'lcov', 'text'],
|
|
coveragePathIgnorePatterns: ['node_modules', '__tests__', 'interface.ts', '.d.ts', 'typings', 'vite'],
|
|
collectCoverageFrom: [
|
|
'**/src/**',
|
|
'!**/cjs/**',
|
|
'!**/build/**',
|
|
'!**/esm/**',
|
|
'!**/node_modules/**',
|
|
'!**/__tests__/**',
|
|
'!**/types/**',
|
|
'!**/interface.ts',
|
|
'!**/vite/**'
|
|
]
|
|
};
|