-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
chore: move @jest/test-utils
reference
#13468
chore: move @jest/test-utils
reference
#13468
Conversation
declare const describe: Global.TestFrameworkGlobals['describe']; | ||
declare const test: Global.TestFrameworkGlobals['test']; | ||
import semver = require('semver'); | ||
import {describe, test} from '@jest/globals'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work now as expected. Looks right to import from @jest/globals
.
@@ -30,7 +30,6 @@ | |||
"walker": "^1.0.8" | |||
}, | |||
"devDependencies": { | |||
"@jest/test-utils": "workspace:^", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used.
Any news on this one? 😀 |
Thanks for reminder. Got swamped with some stuff, but I will come back very soon. |
👋 |
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
Great stuff, thanks! |
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. |
Summary
Currently
@jest/test-utils
package is referenced inpackages/*/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.