[7.17] Upgrade to Jest 29 (#143319)#158607
Conversation
|
@elasticmachine merge upstream |
|
After some digging, it looks like the minimum version of TS for Jest 28+ is https://jestjs.io/docs/28.x/upgrading-to-jest28#compatibility This is leading to type failures in the Checks and Check Types steps. I'm guessing this is also leading to slightly different transpilation and the snapshots failing. I do not know the scope of upgrading TS. I tried to look at some previous PRs, but they all were incremental upgrades to TS version so it is hard for me to gauge the entire upgrade. Is this something we should continue? |
|
@Ikuni17 The TS 4.3.5 upgrade backport PR was merged. I just updated this branch with the latest changes in the upstream so I think you can now proceed 😃 |
|
@Ikuni17 I tested locally and the remaining of the errors go away if we upgrade the jest related stuff into |
|
@mistic ok, i'll bump everything to |
dddb96e to
6aab1d2
Compare
6aab1d2 to
817e888
Compare
chore(NA): bump jest to v28 chore(NA): bump jest to v28 chore(NA): bump jest to v28 chore(NA): bump jest to v28 fix(NA): types Revert "fix(NA): types" This reverts commit b8de19630c2fd1ee17fec7c1357a83e1857b0ab1. chore(NA): old lib versions chore(NA): update testing-library/react chore(NA): fix type errors chore(NA): update testing-library dom chore(NA): replace jest-transform by raw transform chore(NA): eslint fix chore(NA): add types/react-dom resolution fix(NA): jest test timers fix(NA): sense_editor tests chore(NA): eslint fix
...olution/public/common/components/exceptions/use_fetch_or_create_rule_exception_list.test.tsx
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
x-pack/plugins/security_solution/public/management/pages/trusted_apps/store/middleware.test.ts
Show resolved
Hide resolved
4c95427 to
27e43c4
Compare
mistic
left a comment
There was a problem hiding this comment.
lgtm, removing the extra resolutions will be looked at if/when we upgrade into jest 29.5.0
Closes #157436
Unblocks: #157111
Backport
This will backport the following commits from
mainto7.17:Questions ?
Please refer to the Backport tool documentation