-
Notifications
You must be signed in to change notification settings - Fork 640
ODC-6775: Jest upgrade POC #14939
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
base: main
Are you sure you want to change the base?
ODC-6775: Jest upgrade POC #14939
Conversation
@logonoff: This pull request references ODC-6775 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: logonoff The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
56636be
to
19e6962
Compare
57409cc
to
d684cb0
Compare
The newer versions of `@types/jest` check the shape of mocked functions and objects with their actual counterparts. A large number of our tests unfortunately have mocks that don't have all the properties of their real counterparts, causing many type errors. To reduce the risk from large code changes in this PR (especially since we are so late into the 4.19 development cycle), I am going to downgrade `@types/jest` until there is time to reconcile these type errors.
- Switched from `ts-jest` to `esbuild-jest-transform` because `ts-jest` is slow - Updated `i18next-parser` and `esbuild-loader` to latest to avoid duplicate esbuild installations in yarn.lock - Removed `jest-resolver.js` because it was causing issues with resolving files - Jest config moved to `jest.config.ts` because a) it is recommended and b) so we can load `tsconfig` into the esbuild jest transformer
1b2786a
to
c22b530
Compare
@logonoff: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/hold
spike to find out how hard it would be to upgrade jest