VTable/packages/vtable/jest.config.js
Rui-Sun a773682097 chore: add bugserver ci
* chore: add bugserver ci
* chore: update unit-test.yml
2023-06-13 12:04:43 +08:00

28 lines
706 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': {
diagnostics: {
exclude: ['**']
},
tsconfig: {
resolveJsonModule: true,
esModuleInterop: true
}
},
__DEV__: true
},
verbose: true,
collectCoverage: true,
coverageReporters: ['json-summary', 'lcov'],
coveragePathIgnorePatterns: ['node_modules', '__tests__', 'interface.ts', '.d.ts', 'typings'],
setupFiles: ['./setup-mock.js']
};