mirror of
https://github.com/VisActor/VTable
synced 2024-11-22 01:52:03 +00:00
53 lines
1.5 KiB
JavaScript
53 lines
1.5 KiB
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: false,
|
|
verbose: true,
|
|
globals: {
|
|
'ts-jest': {
|
|
diagnostics: {
|
|
exclude: ['**']
|
|
},
|
|
tsconfig: {
|
|
resolveJsonModule: true,
|
|
esModuleInterop: true
|
|
}
|
|
},
|
|
__DEV__: true
|
|
},
|
|
collectCoverage: false,
|
|
coverageReporters: ['json-summary', 'lcov', 'text'],
|
|
collectCoverageFrom: [
|
|
'**/src/**',
|
|
'!**/cjs/**',
|
|
'!**/dist/**',
|
|
'!**/es/**',
|
|
'!**/node_modules/**',
|
|
'!**/__tests__/**',
|
|
'!**/types/**',
|
|
'!**/interface.ts'
|
|
],
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 60,
|
|
functions: 60,
|
|
lines: 60,
|
|
statements: 60
|
|
}
|
|
},
|
|
moduleNameMapper: {
|
|
'd3-color': path.resolve(__dirname, './node_modules/d3-color/dist/d3-color.min.js'),
|
|
'd3-array': path.resolve(process.cwd(), './node_modules/d3-array/dist/d3-array.min.js'),
|
|
'd3-geo': path.resolve(__dirname, './node_modules/d3-geo/dist/d3-geo.min.js'),
|
|
'd3-dsv': path.resolve(__dirname, './node_modules/d3-dsv/dist/d3-dsv.min.js'),
|
|
'd3-hexbin': path.resolve(__dirname, './node_modules/d3-hexbin/build/d3-hexbin.min.js'),
|
|
'd3-hierarchy': path.resolve(__dirname, './node_modules/d3-hierarchy/dist/d3-hierarchy.min.js')
|
|
},
|
|
setupFiles: ['./setup-mock.js']
|
|
};
|