mirror of
https://github.com/idrawjs/idraw
synced 2026-05-23 09:38:22 +00:00
28 lines
670 B
JavaScript
28 lines
670 B
JavaScript
module.exports = {
|
|
// "collectCoverage": true,
|
|
testEnvironment: 'jsdom',
|
|
coverageDirectory: 'reports',
|
|
collectCoverageFrom: [
|
|
'packages/**/src/**/*.ts',
|
|
'!packages/**/node_modules/**',
|
|
'!**/node_modules/**'
|
|
],
|
|
coverageReporters: [
|
|
// "clover",
|
|
// "html",
|
|
'text-summary'
|
|
],
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 80,
|
|
functions: 80,
|
|
lines: 80,
|
|
statements: 80
|
|
}
|
|
},
|
|
moduleFileExtensions: ['js', 'ts'],
|
|
modulePaths: ['<rootDir>'],
|
|
testRegex: '(/packages/([^/]{1,})/__tests__/.*)\\.test.ts$',
|
|
// "testRegex": "(/packages/idraw/__tests__/.*)\\.test.ts$",
|
|
setupFiles: ['jest-canvas-mock']
|
|
};
|