Skip to content

Commit fc9dcf3

Browse files
committed
chore: add initial example for nestjs+jest
1 parent 03d0095 commit fc9dcf3

File tree

4 files changed

+3
-3904
lines changed

4 files changed

+3
-3904
lines changed

nestjs-jest/jest.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
module.exports = {
2-
preset: 'ts-jest',
32
testEnvironment: 'node',
43
testRegex: '.spec.ts$',
5-
transform: {
6-
'^.+\\.(ts|tsx)?$': [
7-
'ts-jest',
8-
{
9-
isolatedModules: true,
10-
},
11-
],
12-
},
13-
rootDir: '.',
4+
transform: { '.ts': ['ts-jest', { isolatedModules: true } ] },
145
};

0 commit comments

Comments
 (0)