You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to specify a separate tsconfig.test.json for ts-jest as I am using Next.js which has a hard-enforce on jsx: preserve and therefore my initial tsconfig.json is not sufficient.
The current documentation page on tsconfig mentions you can do this by setting global.ts-jest.tsConfig to the filepath to your alternative tsconfig configuration. Could not get this working.
After much debugging/googling around it worked when I tried all lowercase (global.ts-jest.tsconfig), not camelCase (global.ts-jest.tsConfig).
🐛 Bug Report
I want to specify a separate
tsconfig.test.json
forts-jest
as I am using Next.js which has a hard-enforce onjsx: preserve
and therefore my initialtsconfig.json
is not sufficient.The current documentation page on
tsconfig
mentions you can do this by settingglobal.ts-jest.tsConfig
to the filepath to your alternativetsconfig
configuration. Could not get this working.After much debugging/googling around it worked when I tried all lowercase (
global.ts-jest.tsconfig
), not camelCase (global.ts-jest.tsConfig
).To Reproduce
Documentation link - https://huafu.github.io/ts-jest/user/config/tsConfig
The text was updated successfully, but these errors were encountered: