mirror of
https://github.com/VisActor/VTable
synced 2024-11-22 18:57:38 +00:00
a773682097
* chore: add bugserver ci * chore: update unit-test.yml
28 lines
706 B
JavaScript
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']
|
|
};
|