jest icon indicating copy to clipboard operation
jest copied to clipboard

chore: move `@jest/test-utils` reference

Open mrazauskas opened this issue 3 years ago • 3 comments

Summary

Currently @jest/test-utils package is referenced in packages/*/tsconfig.json files. These tsconfigs exclude ./**/__tests__/**/* (all test files), but @jest/test-utils is used only in the test files.

Seems that moving the reference to __tests__/tsconfig.json files is more precise. tsc would build types @jest/test-utils as one of the last and will not think that type other packages depend on @jest/test-utils. Only tests depend on it, but they are excluded from the build tsconfigs.

Test plan

Green CI.

mrazauskas avatar Oct 18 '22 14:10 mrazauskas

Any news on this one? 😀

SimenB avatar Nov 07 '22 17:11 SimenB

Thanks for reminder. Got swamped with some stuff, but I will come back very soon.

mrazauskas avatar Nov 07 '22 17:11 mrazauskas

👋

SimenB avatar Jan 26 '23 15:01 SimenB

Great stuff, thanks!

SimenB avatar Feb 04 '23 11:02 SimenB

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

github-actions[bot] avatar Mar 07 '23 00:03 github-actions[bot]