-
Notifications
You must be signed in to change notification settings - Fork 35
[TEST] Bump Jest dependencies to use version 28 #2320
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
Conversation
|
♻️ PR Preview 3ccd089 has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
|
♻️ PR Preview 3ccd089 has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
|
❌ performance tests compilation is currently failing Same errors if we run tsc on e2e tests 👇🏿 |
|
ℹ️ I have just tested with jest@29 and the same problems occur (perf test compilation errors + foreignObject CSS selector). |
Add `jest-environment-jsdom` dependency: as of Jest 28 "jest-environment-jsdom" is no longer shipped by default, make sure to install it separately.
Current issue with Performance tests compilationThis also occurs if we run Root cause is playwright-community/jest-playwright#808 |
1b0fc3c to
90b321d
Compare
…son at project root)
# Conflicts: # package-lock.json # package.json
This is a temporary solution until a new release including the fix is available.
# Conflicts: # package-lock.json # package.json
| return `${this.labelSvgGroup(bpmnElementId)} > g > foreignObject > div > div > div`; | ||
| // * is for 'foreignObject' | ||
| // Using 'foreignObject' do not work anymore with jest@28 (jsdom bump for 16.6 to 19) | ||
| return `${this.labelSvgGroup(bpmnElementId)} > g > * > div > div > div`; |
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.
Good catch 👍🏻
csouchet
left a comment
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.
Very good job. Thank you for this updating and the investigation 🎉
|
Kudos, SonarCloud Quality Gate passed!
|









Add
jest-environment-jsdomdependency: as of Jest 28 "jest-environment-jsdom" is no longer shipped by default, make sure to install it separately.Locally fix
jest-playwright-preset@2.0.0types withpatch-package. This is a temporary solution until a new release including the fix is available.Update the typescript-support test configuration to prevent the types used to develop
bpmn-visualizationfrom being part of the type resolution in the test project:typeRootsconfiguration which included by default all development types (available in../../node_modules)closes #2004
Tests done
patch-package(see PR description) until TypeScript Build Failure: global.d.ts(233,5): error TS2709: Cannot use namespace 'JestConfig' as a type. playwright-community/jest-playwright#808 is fixednode_modules/jest-playwright-preset/types/global.d.tsfile (use types that are fixed in the main branch)npx patch-package jest-playwright-presetto create the patch file and edit it to remove extra file permissions"traceResolution": trueand reviewing https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#overviewtypeRootsconfiguration: ts-support_TS_4.0.2_config_02_typeRoots_unset.txt