Skip to content

Commit

Permalink
chore: migrate to jest v25, v26 (#20716)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell authored Dec 14, 2021
1 parent e839eaa commit 28ceaaa
Show file tree
Hide file tree
Showing 60 changed files with 1,894 additions and 1,507 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "fixup! fixup! chore: update all jest deps to v25 + apply single version policy",
"packageName": "@fluentui/bundle-size",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: update all jest deps to v25 + apply single version policy",
"packageName": "@fluentui/jest-serializer-make-styles",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: update all jest deps to v26",
"packageName": "@fluentui/jest-serializer-merge-styles",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "fixup! fixup! chore: update all jest deps to v25 + apply single version policy",
"packageName": "@fluentui/make-styles",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: update all jest deps to v25 + apply single version policy",
"packageName": "@fluentui/react-accordion",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: update all jest deps to v25 + apply single version policy",
"packageName": "@fluentui/react-conformance",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: update all jest deps to v25 + apply single version policy",
"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": "test(react-focus): make test work with new JSDOM",
"packageName": "@fluentui/react-focus",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "fixup! chore: update all jest deps to v25 + apply single version policy",
"packageName": "@fluentui/react-make-styles",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: update all jest deps to v25 + apply single version policy",
"packageName": "@fluentui/react-provider",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "test(react-switch): update snapshots to match new JSDOM",
"packageName": "@fluentui/react-switch",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "feat: improve test utilities",
"packageName": "@fluentui/test-utilities",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "test(utilities): fix test with JSDOM 16 in place",
"packageName": "@fluentui/utilities",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: update all jest deps to v26",
"packageName": "@fluentui/web-components",
"email": "[email protected]",
"dependentChangeType": "none"
}
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"@types/express": "4.17.2",
"@types/fs-extra": "8.0.1",
"@types/glob": "7.1.1",
"@types/jest": "24.9.1",
"@types/jest": "26.0.24",
"@types/jest-axe": "3.5.3",
"@types/jju": "1.4.1",
"@types/json-schema": "^7.0.8",
Expand All @@ -142,7 +142,7 @@
"@typescript-eslint/parser": "4.22.0",
"ajv": "8.4.0",
"autoprefixer": "10.2.1",
"babel-jest": "24.9.0",
"babel-jest": "26.6.3",
"babel-loader": "8.2.2",
"babel-plugin-annotate-pure-calls": "0.4.0",
"beachball": "2.18.0",
Expand All @@ -157,8 +157,8 @@
"cypress-real-events": "1.2.0",
"cypress-storybook": "0.5.1",
"danger": "^6.0.5",
"del": "6.0.0",
"dedent": "0.7.0",
"del": "6.0.0",
"enhanced-resolve": "5.8.2",
"enquirer": "2.3.6",
"eslint": "7.25.0",
Expand All @@ -168,7 +168,7 @@
"eslint-plugin-deprecation": "1.2.1",
"eslint-plugin-es": "4.1.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "23.13.2",
"eslint-plugin-jest": "23.20.0",
"eslint-plugin-jsdoc": "^36.0.7",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-react": "7.26.0",
Expand All @@ -182,11 +182,12 @@
"gzip-size": "6.0.0",
"html-webpack-plugin": "5.1.0",
"imports-loader": "1.2.0",
"jest": "24.9.0",
"jest": "26.6.3",
"jest-axe": "5.0.1",
"jest-cli": "24.9.0",
"jest-environment-jsdom": "24.9.0",
"jest-watch-typeahead": "0.4.2",
"jest-cli": "26.6.3",
"jest-environment-jsdom": "26.6.2",
"jest-snapshot": "26.6.2",
"jest-watch-typeahead": "0.6.5",
"jju": "1.4.0",
"json-schema": "0.4.0",
"just-scripts": "1.3.1",
Expand All @@ -211,14 +212,15 @@
"satisfied": "^1.1.1",
"schema-utils": "3.1.1",
"semver": "^6.2.0",
"storybook-addon-export-to-codesandbox": "0.6.4",
"storybook-addon-performance": "0.14.0",
"strip-ansi": "6.0.0",
"style-loader": "2.0.0",
"syncpack": "5.6.10",
"terser": "5.7.1",
"terser-webpack-plugin": "5.1.4",
"tmp": "0.2.1",
"ts-jest": "24.3.0",
"ts-jest": "26.5.6",
"ts-loader": "8.0.14",
"tsconfig-paths": "3.9.0",
"tsconfig-paths-webpack-plugin": "3.5.1",
Expand All @@ -233,8 +235,7 @@
"webpack-merge": "5.7.3",
"workspace-tools": "0.16.2",
"yargs": "13.3.2",
"yargs-parser": "13.1.2",
"storybook-addon-export-to-codesandbox": "0.6.4"
"yargs-parser": "13.1.2"
},
"license": "MIT",
"workspaces": {
Expand Down
2 changes: 1 addition & 1 deletion packages/a11y-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"peerDependencies": {
"enzyme": "^3.0.0",
"jest": "^24.0.0",
"jest": "^26.0.0",
"react": ">=16.8.0 <18.0.0"
}
}
7 changes: 6 additions & 1 deletion packages/bundle-size/src/reporters/cliReporter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ expect.addSnapshotSerializer({
return typeof val === 'string';
},
print(val) {
return stripAnsi(val);
/**
* test function makes sure that value is the guarded type
*/
const _val = /** @type {string} */ (val);

return stripAnsi(_val);
},
});

Expand Down
Loading

0 comments on commit 28ceaaa

Please sign in to comment.