Skip to content

Commit 94f405b

Browse files
committed
Fix jest config
1 parent e242333 commit 94f405b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ module.exports = {
6060
// A set of global variables that need to be available in all test environments
6161
globals: {
6262
"ts-jest": {
63-
"tsconfig": "tsconfig.json"
63+
tsconfig: "tsconfig.json",
64+
isolatedModules: true,
6465
}
6566
},
6667

test/jest.e2e.transformer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ const transformer = require('@nestjs/graphql/plugin');
55
module.exports = {
66
name: 'nestjs-graphql-transformer',
77
version: 1,
8-
factory: (cs) => transformer.before({}, cs.tsCompiler.program)
8+
factory: (tsCompiler) => transformer.before({}, tsCompiler.program)
99
};

0 commit comments

Comments
 (0)