Skip to content

Commit

Permalink
chore(deps): updated jest to v29 (#3032)
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 authored May 1, 2024
1 parent 0750db7 commit 73f3ec6
Show file tree
Hide file tree
Showing 12 changed files with 1,217 additions and 1,081 deletions.
2,240 changes: 1,188 additions & 1,052 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"@typescript-eslint/parser": "^5.22.0",
"axios": "^0.27.2",
"axios-mock-adapter": "^1.21.1",
"babel-jest": "^28.1.2",
"babel-jest": "^29.7.0",
"babel-loader": "^8.2.4",
"commander": "^9.3.0",
"eslint": "8.18.0",
Expand All @@ -128,9 +128,9 @@
"eslint-plugin-react-hooks": "4.6.0",
"husky": "^9.0.11",
"identity-obj-proxy": "^3.0.0",
"jest": "^28.1.3",
"jest-cli": "^28.1.2",
"jest-environment-jsdom": "^28.1.2",
"jest": "^29.7.0",
"jest-cli": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.0",
"markdown-loader-jest": "^0.1.1",
"react": "^17.0.0",
Expand All @@ -141,7 +141,7 @@
"semantic-release": "^20.1.3",
"stylelint": "^14.7.1",
"stylelint-config-standard-scss": "^4.0.0",
"ts-jest": "^28.0.7",
"ts-jest": "^29.1.2",
"typescript": "^4.7.4"
},
"jest": {
Expand Down
2 changes: 1 addition & 1 deletion src/Annotation/__snapshots__/Annotation.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Annotation renders in all variants 1`] = `
Array [
[
<span
className="pgn__annotation pgn__annotation-error-top"
>
Expand Down
2 changes: 1 addition & 1 deletion src/Avatar/__snapshots__/Avatar.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Avatar renders in all sizes 1`] = `
Array [
[
<img
alt=""
className="pgn__avatar pgn__avatar-xs"
Expand Down
2 changes: 1 addition & 1 deletion src/AvatarButton/__snapshots__/AvatarButton.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AvatarButton renders in all sizes 1`] = `
Array [
[
<button
className="btn-avatar pgn__avatar-button-avatar pgn__avatar-button-avatar-sm btn btn-tertiary btn-sm"
disabled={false}
Expand Down
2 changes: 1 addition & 1 deletion src/ColorPicker/__snapshots__/ColorPicker.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`renders correctly successfully renders 1`] = `
onFocus={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
style={Object {}}
style={{}}
type="button"
/>
</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<Dropzone.DefaultContent /> successfully renders 1`] = `
Array [
[
<div
className="pgn__dropzone__upload-icon-wrapper"
>
Expand Down
2 changes: 1 addition & 1 deletion src/Dropzone/tests/__snapshots__/Dropzone.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ exports[`<Dropzone /> successfully renders 1`] = `
onChange={[Function]}
onClick={[Function]}
style={
Object {
{
"display": "none",
}
}
Expand Down
18 changes: 9 additions & 9 deletions src/IconButton/__snapshots__/IconButton.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ exports[`<IconButton /> renders with required props 1`] = `
focusable="false"
role="img"
src={null}
style={Object {}}
style={{}}
viewBox="0 0 function SvgInfoOutline(props) {
return /*#__PURE__*/React.createElement(\\"svg\\", _extends({
return /*#__PURE__*/React.createElement("svg", _extends({
width: 24,
height: 24,
viewBox: \\"0 0 24 24\\",
fill: \\"none\\",
xmlns: \\"http://www.w3.org/2000/svg\\"
}, props), /*#__PURE__*/React.createElement(\\"path\\", {
d: \\"M11 7h2v2h-2V7Zm0 4h2v6h-2v-6Zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z\\",
fill: \\"currentColor\\"
viewBox: "0 0 24 24",
fill: "none",
xmlns: "http://www.w3.org/2000/svg"
}, props), /*#__PURE__*/React.createElement("path", {
d: "M11 7h2v2h-2V7Zm0 4h2v6h-2v-6Zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z",
fill: "currentColor"
}));
} undefined"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill="currentColor"
style={Object {}}
style={{}}
/>
</svg>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`<ProgressBar.Annotated /> correct rendering renders without props 1`] =
className="pgn__progress-bar--warning pgn__progress-tick--black progress-bar"
role="progressbar"
style={
Object {
{
"width": "NaN%",
}
}
Expand Down
12 changes: 6 additions & 6 deletions src/Sheet/__snapshots__/Sheet.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ exports[`<Sheet /> snapshots blocking, left snapshot 1`] = `
onClickOutside={[Function]}
onEscapeKey={[Function]}
shards={
Array [
Object {
[
{
"current": null,
},
]
Expand Down Expand Up @@ -41,8 +41,8 @@ exports[`<Sheet /> snapshots dark, right snapshot 1`] = `
onClickOutside={[Function]}
onEscapeKey={[Function]}
shards={
Array [
Object {
[
{
"current": null,
},
]
Expand Down Expand Up @@ -72,8 +72,8 @@ exports[`<Sheet /> snapshots default args snapshot: bottom, show, light 1`] = `
onClickOutside={[Function]}
onEscapeKey={[Function]}
shards={
Array [
Object {
[
{
"current": null,
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ exports[`StatefulButton renders basic usage 1`] = `
`;

exports[`StatefulButton renders custom icons and disable during state 1`] = `
Array [
[
<button
aria-disabled={false}
aria-live="assertive"
Expand Down Expand Up @@ -180,7 +180,7 @@ Array [
`;

exports[`StatefulButton renders custom states 1`] = `
Array [
[
<button
aria-disabled={true}
aria-live="assertive"
Expand Down

0 comments on commit 73f3ec6

Please sign in to comment.