Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion frontend/jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ module.exports = {
'\\.scss$': '<rootDir>/__mocks__/styleMock.js',
},
transform: {
'^.+\\.(ts|tsx)$': ['ts-jest', { tsconfig: { esModuleInterop: true } }],
// ts-jest compiles each file with its own program and drops the automatic `@types/*`
// inclusion, so whichever suite jest compiles first fails with "Cannot find name
// 'jest'". Declaring the test globals here makes every suite compile in any order.
'^.+\\.(ts|tsx)$': [
'ts-jest',
{ tsconfig: { esModuleInterop: true, types: ['jest', '@testing-library/jest-dom'] } },
],
},
};
Loading