forked from xiaoiver/infinite-canvas-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
executable file
·31 lines (30 loc) · 813 Bytes
/
Copy pathjest.config.js
File metadata and controls
executable file
·31 lines (30 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const esm = ['d3-*', 'earcut', 'potpack', '@mapbox', 'roughjs']
.map((d) => `_${d}|${d}`)
.join('|');
module.exports = {
testTimeout: 100000,
testMatch: [
'<rootDir>/__tests__/**/*/*.spec.+(ts|tsx|js)',
'!**/e2e/*.spec.+(ts|tsx|js)',
'!**/ui/*.spec.+(ts|tsx|js)',
// '**/ssr/selector.spec.+(ts|tsx|js)',
],
preset: 'ts-jest',
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
modulePathIgnorePatterns: ['dist'],
collectCoverageFrom: ['packages/core/src/**/*.ts'],
transform: {
'^.+\\.[tj]s$': [
'ts-jest',
{
isolatedModules: true,
tsconfig: {
allowJs: true,
target: 'esnext',
esModuleInterop: true,
},
},
],
},
transformIgnorePatterns: [`<rootDir>/node_modules/(?!(?:.pnpm/)?(${esm}))`],
};