-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
30 lines (28 loc) · 1.21 KB
/
Copy pathjest.config.js
File metadata and controls
30 lines (28 loc) · 1.21 KB
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
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
// Confine test discovery to the src tree, and match with a *relative*
// testMatch pattern. Both halves matter:
// - `roots` stops Jest from ever crawling outside src — notably it never
// descends into '.claude/worktrees/<name>', so a checkout that lives next
// to sibling worktrees doesn't pick up duplicate test copies.
// - The relative pattern (no leading '<rootDir>/') is matched against the
// path relative to rootDir. An absolute '<rootDir>/src/**' pattern is
// matched against the full filesystem path, where micromatch's default
// `dot: false` refuses to descend through a dot-directory segment (e.g. a
// worktree at '.claude/worktrees/<name>') — silently matching 0 tests
// while still exiting non-zero. The relative form avoids that entirely.
roots: ['<rootDir>/src'],
testMatch: [
'**/*.test.(ts|js)',
],
// transform: {
// '^.+\\.(ts|tsx)?$': 'ts-jest',
// },
// Dateien, die Jest ignorieren soll
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
// Verzeichnisse für Modultransformationen
transform: {},
// Zeige Details zu jedem Test
verbose: true
};