forked from argocd-diff-action/argocd-diff-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.ts
More file actions
27 lines (24 loc) · 804 Bytes
/
jest.config.ts
File metadata and controls
27 lines (24 loc) · 804 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
import { createDefaultPreset, type JestConfigWithTsJest } from 'ts-jest';
const preset = createDefaultPreset({
tsconfig: {
// Fixes warning about requiring isolateModules: true
// We don't want to enable isolateModules as it disabled important type checks
module: 'CommonJS',
},
});
const config: JestConfigWithTsJest = {
...preset,
clearMocks: true,
moduleDirectories: ['node_modules', '<rootDir>'],
modulePaths: ['<rootDir>'],
moduleNameMapper: {
'^(\\./.+|\\../.+).js$': '$1',
},
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/build/'],
testMatch: ['**/*.test.ts'],
testRunner: 'jest-circus/runner',
verbose: true,
};
export default config;