mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
34 lines
1,018 B
JavaScript
34 lines
1,018 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$',
|
|
testPathIgnorePatterns: [
|
|
'(/packages/board/__tests__/.*)\\.test.ts$',
|
|
'(/packages/core/__tests__/.*)\\.test.ts$',
|
|
'(/packages/idraw/__tests__/.*)\\.test.ts$',
|
|
'(/packages/renderer/__tests__/.*)\\.test.ts$',
|
|
'(/packages/types/__tests__/.*)\\.test.ts$'
|
|
],
|
|
moduleNameMapper: {
|
|
'@idraw/util': '<rootDir>/packages/util/src/index.ts'
|
|
},
|
|
// "testRegex": "(/packages/idraw/__tests__/.*)\\.test.ts$",
|
|
setupFiles: ['jest-canvas-mock']
|
|
};
|