We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d26526 commit 18bdf3eCopy full SHA for 18bdf3e
jest.config.ts renamed to jest.config.cjs
@@ -1,23 +1,23 @@
1
-import type { Config } from '@jest/types';
2
-
3
-const config: Config.InitialOptions = {
+const config = {
4
collectCoverage: true,
5
coverageDirectory: 'coverage',
6
transform: {
7
- '^.+\\.ts?$': ['ts-jest', {
8
- useESM: true,
9
- diagnostics: {
10
- warnOnly: true,
+ '^.+\\.ts?$': [
+ 'ts-jest',
+ {
+ useESM: true,
+ diagnostics: {
+ warnOnly: true,
11
+ },
12
},
- }],
13
+ ],
14
15
testRegex: '((\\.|/)(spec))\\.(ts?)$',
16
moduleFileExtensions: ['ts', 'js'],
17
extensionsToTreatAsEsm: ['.ts'],
18
modulePaths: ['src'],
19
moduleNameMapper: {
20
'^(\\.{1,2}/.*)\\.js$': '$1',
- '^#app/(.*)\\.js$': '$1',
21
22
testPathIgnorePatterns: ['/node_modules/'],
23
testEnvironment: 'node',
0 commit comments