-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore: migrate to jest v30 #35456
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: master
Are you sure you want to change the base?
chore: migrate to jest v30 #35456
Changes from all commits
1fd6e08
4ab5272
294fc84
f175e9c
191a968
8cf36e0
90fe06e
42ba903
3d2bcfe
00c8163
02da0ab
a83ddaf
579bc23
c23f229
cef95ad
cb4cf13
a6fd5b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
| "program": "${workspaceRoot}/scripts/executors/src/debug-test.js", | ||
| "cwd": "${fileDirname}", | ||
| "stopOnEntry": false, | ||
| "args": ["-i", "--testPathPattern=\\b${fileBasenameNoExtension}", "--watch"], | ||
| "args": ["-i", "--testPathPatterns=\\b${fileBasenameNoExtension}", "--watch"], | ||
| "runtimeExecutable": null, | ||
| "runtimeArgs": ["--nolazy", "--inspect"], | ||
| "env": { | ||
|
|
@@ -42,7 +42,7 @@ | |
| "program": "${workspaceRoot}/scripts/executors/src/debug-test.js", | ||
| "cwd": "${fileDirname}", | ||
| "stopOnEntry": false, | ||
| "args": ["-i", "--testPathPattern=\\b${fileBasenameNoExtension}", "--watch"], | ||
| "args": ["-i", "--testPathPatterns=\\b${fileBasenameNoExtension}", "--watch"], | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| "runtimeExecutable": null, | ||
| "runtimeArgs": ["--nolazy", "--inspect"], | ||
| "env": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/date-time-utilities", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/dom-utilities", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/foundation-legacy", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/keyboard-key", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "style: remove unused import, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/merge-styles", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30", | ||
| "packageName": "@fluentui/merge-styles", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/react", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/react-cards", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/react-charting", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30", | ||
| "packageName": "@fluentui/react-charts", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/react-date-time", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "minor", | ||
| "comment": "feat: use react-dom/client, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/react-docsite-components", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "patch" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30", | ||
| "packageName": "@fluentui/react-docsite-components", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30", | ||
| "packageName": "@fluentui/react-experiments", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/react-file-type-icons", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/react-hooks", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/react-monaco-editor", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/set-version", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/style-utilities", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "chore: migrate to jest v30, add ES2015.Symbol.WellKnown to tsconfig lib for Symbol.iterator support", | ||
| "packageName": "@fluentui/theme", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "none" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,24 +32,24 @@ | |
| "devDependencies": { | ||
| "@actions/core": "1.9.1", | ||
| "@actions/github": "5.0.3", | ||
| "@babel/core": "7.24.6", | ||
| "@babel/generator": "7.24.6", | ||
| "@babel/parser": "7.24.6", | ||
| "@babel/core": "7.28.5", | ||
| "@babel/generator": "7.28.5", | ||
| "@babel/parser": "7.28.5", | ||
| "@babel/plugin-proposal-class-properties": "7.18.6", | ||
| "@babel/plugin-proposal-decorators": "7.24.6", | ||
| "@babel/plugin-proposal-decorators": "7.28.0", | ||
| "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6", | ||
| "@babel/plugin-proposal-optional-chaining": "7.21.0", | ||
| "@babel/plugin-proposal-object-rest-spread": "7.20.7", | ||
| "@babel/plugin-syntax-dynamic-import": "7.8.3", | ||
| "@babel/plugin-syntax-object-rest-spread": "7.8.3", | ||
| "@babel/plugin-transform-runtime": "7.24.6", | ||
| "@babel/preset-env": "7.24.6", | ||
| "@babel/preset-react": "7.24.6", | ||
| "@babel/preset-typescript": "7.24.6", | ||
| "@babel/register": "7.24.6", | ||
| "@babel/standalone": "7.24.6", | ||
| "@babel/traverse": "7.24.6", | ||
| "@babel/types": "7.24.6", | ||
| "@babel/plugin-transform-runtime": "7.28.5", | ||
| "@babel/preset-env": "7.28.5", | ||
| "@babel/preset-react": "7.28.5", | ||
| "@babel/preset-typescript": "7.28.5", | ||
| "@babel/register": "7.28.3", | ||
| "@babel/standalone": "7.28.5", | ||
| "@babel/traverse": "7.28.5", | ||
| "@babel/types": "7.28.5", | ||
| "@cactuslab/usepubsub": "^1.0.2", | ||
| "@ctrl/tinycolor": "3.3.4", | ||
| "@cypress/react": "9.0.1", | ||
|
|
@@ -66,7 +66,7 @@ | |
| "@griffel/react": "^1.5.32", | ||
| "@griffel/shadow-dom": "0.2.2", | ||
| "@griffel/webpack-loader": "2.2.10", | ||
| "@jest/reporters": "29.7.0", | ||
| "@jest/reporters": "30.2.0", | ||
| "@mdx-js/loader": "2.3.0", | ||
| "@microsoft/api-extractor": "7.51.0", | ||
| "@microsoft/api-extractor-model": "7.31.2", | ||
|
|
@@ -137,7 +137,7 @@ | |
| "@types/express": "4.17.21", | ||
| "@types/fs-extra": "8.0.1", | ||
| "@types/glob": "7.1.1", | ||
| "@types/jest": "29.5.13", | ||
| "@types/jest": "30.0.0", | ||
| "@types/jest-axe": "3.5.9", | ||
| "@types/jju": "1.4.1", | ||
| "@types/json-schema": "^7.0.8", | ||
|
|
@@ -169,7 +169,7 @@ | |
| "@typescript-eslint/rule-tester": "8.46.2", | ||
| "@typescript-eslint/eslint-plugin": "^8.46.2", | ||
| "autoprefixer": "10.2.1", | ||
| "babel-jest": "29.7.0", | ||
| "babel-jest": "30.2.0", | ||
| "babel-loader": "9.1.3", | ||
| "babel-plugin-annotate-pure-calls": "0.4.0", | ||
| "babel-plugin-annotate-pure-imports": "1.0.0-1", | ||
|
|
@@ -238,14 +238,13 @@ | |
| "html-webpack-plugin": "5.6.0", | ||
| "ignore-not-found-export-webpack-plugin": "1.0.2", | ||
| "imports-loader": "1.2.0", | ||
| "jest": "29.7.0", | ||
| "jest-axe": "8.0.0", | ||
| "jest-cli": "29.7.0", | ||
| "jest": "30.2.0", | ||
| "jest-axe": "10.0.0", | ||
| "jest-cli": "30.2.0", | ||
| "jest-environment-jsdom": "29.7.0", | ||
| "jest-environment-node": "^29.7.0", | ||
| "jest-environment-node-single-context": "29.1.0", | ||
| "jest-snapshot": "29.7.0", | ||
| "jest-watch-typeahead": "2.2.2", | ||
| "jest-environment-node": "30.2.0", | ||
| "jest-snapshot": "30.2.0", | ||
| "jest-watch-typeahead": "3.0.1", | ||
| "jju": "1.4.0", | ||
| "json-schema": "0.4.0", | ||
| "jsonc-eslint-parser": "2.4.1", | ||
|
|
@@ -293,7 +292,7 @@ | |
| "rollup-plugin-node-resolve": "5.2.0", | ||
| "rollup-plugin-terser": "5.3.1", | ||
| "rollup-plugin-transform-tagged-template": "0.0.3", | ||
| "sass": "1.49.11", | ||
| "sass": "1.83.0", | ||
| "sass-loader": "12.4.0", | ||
| "satisfied": "^1.1.1", | ||
| "scheduler": "0.27.0", | ||
|
|
@@ -312,7 +311,7 @@ | |
| "terser-webpack-plugin": "5.3.10", | ||
| "through2": "4.0.2", | ||
| "tmp": "0.2.1", | ||
| "ts-jest": "29.2.5", | ||
| "ts-jest": "29.4.5", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changelog mentions jest v30 supported from 29.4.0 |
||
| "ts-loader": "9.4.2", | ||
| "ts-node": "10.9.2", | ||
| "tsconfig-paths": "4.2.0", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| // Jest Snapshot v1, https://goo.gl/fbAQLP | ||
| // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| exports[`HeatMap chart rendering Should re-render the HeatMap chart with data 1`] = ` | ||
| <div> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
🕵🏾♀️ visual changes to review in the Visual Change Report
vr-tests-react-components/Charts-DonutChart 1 screenshots
vr-tests-react-components/Drawer 4 screenshots
vr-tests-react-components/Positioning 2 screenshots
vr-tests-web-components/Avatar 1 screenshots
vr-tests-web-components/Badge 1 screenshots
vr-tests-web-components/MenuList 1 screenshots
vr-tests-web-components/RadioGroup 1 screenshots
vr-tests-web-components/TextInput 1 screenshots
vr-tests/react-charting-MultiStackBarChart 1 screenshots