Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: cleaning up our jest config #700

Merged
merged 1 commit into from
Dec 5, 2022
Merged

test: cleaning up our jest config #700

merged 1 commit into from
Dec 5, 2022

Conversation

erunion
Copy link
Member

@erunion erunion commented Dec 5, 2022

🧰 Changes

While upgrading oas to Jest 29 I also encountered the same issue we had here where ts-jest wasn't picking up our tsconfig.json file. Turns out that because we're setting up transform on .ts files ourselves we don't need this extra presets config as it's already being loaded from the transform config. Loading both of these was causing the first preset to get loaded without unit test tsconfig.

Kind of an annoying gotcha but all tests should still be passing with this change.

@erunion erunion marked this pull request as ready for review December 5, 2022 20:08
@erunion erunion requested a review from kanadgupta December 5, 2022 20:09
Copy link
Member

@kanadgupta kanadgupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird, I could have sworn I tried it without a preset value in #610 but maybe not. maybe ts-jest finally got their shit together?

@erunion
Copy link
Member Author

erunion commented Dec 5, 2022

yea maybe

@erunion erunion merged commit bea7231 into main Dec 5, 2022
@erunion erunion deleted the erunion-patch-1 branch December 5, 2022 20:13
@kanadgupta
Copy link
Member

also very bummed that #617 is still happening 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants