Skip to content

Commit 61030cd

Browse files
committed
fix: broken jest config for events graphql proxy
1 parent d09510b commit 61030cd

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

proxies/events-graphql-proxy/jest.config.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,19 @@ const config = {
2424
rootDir: './src',
2525
// @ts-ignore
2626
transform: {
27-
...tsjPreset.transform,
27+
'.*\\.(tsx?)$': [
28+
'@swc/jest',
29+
{
30+
jsc: {
31+
target: 'es2021',
32+
transform: {
33+
react: {
34+
runtime: 'automatic',
35+
},
36+
},
37+
},
38+
},
39+
],
2840
},
2941
setupFilesAfterEnv: ['<rootDir>/../.jest/setupTests.ts'],
3042
testMatch: ['<rootDir>/**/*.{spec,test}.{js,jsx,ts,tsx}'],
@@ -36,12 +48,6 @@ const config = {
3648
coverageDirectory: '<rootDir>/../coverage',
3749
collectCoverageFrom: ['<rootDir>/**/*.{ts,js}', '!**/*.test.ts'],
3850
coveragePathIgnorePatterns: ['<rootDir>/../config/', '<rootDir>/../.jest/'],
39-
globals: {
40-
'ts-jest': {
41-
diagnostics: false,
42-
tsconfig: './tsconfig.jest.json',
43-
},
44-
},
4551
};
4652

4753
module.exports = config;

0 commit comments

Comments
 (0)