Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Jest 29 upgrade (#4102)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdadn authored May 16, 2024
1 parent 70e2b94 commit 5ecb145
Show file tree
Hide file tree
Showing 90 changed files with 9,577 additions and 6,561 deletions.
12,480 changes: 7,748 additions & 4,732 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@babel/preset-react": "7",
"@cerner/browserslist-config-terra": "4",
"@cerner/eslint-config-terra": "5",
"@cerner/jest-config-terra": "2",
"@cerner/jest-config-terra": "3",
"@cerner/package-json-lint": "2",
"@cerner/package-json-lint-config-terra": "2",
"@cerner/stylelint-config-terra": "5",
Expand All @@ -60,7 +60,7 @@
"eslint": "7",
"gh-pages": "2",
"glob": "7",
"jest": "27",
"jest": "29",
"lerna": "6",
"postcss": "8",
"react-test-renderer": "16",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ exports[`ActionHeader correctly applies the theme context className 1`] = `
}
id="14"
intl={
Object {
"defaultFormats": Object {},
{
"defaultFormats": {},
"defaultLocale": "en",
"formatDate": [Function],
"formatHTMLMessage": [Function],
Expand All @@ -41,8 +41,8 @@ exports[`ActionHeader correctly applies the theme context className 1`] = `
"formatPlural": [Function],
"formatRelative": [Function],
"formatTime": [Function],
"formats": Object {},
"formatters": Object {
"formats": {},
"formatters": {
"getDateTimeFormat": [Function],
"getMessageFormat": [Function],
"getNumberFormat": [Function],
Expand Down
32 changes: 16 additions & 16 deletions packages/terra-alert/tests/jest/__snapshots__/Alert.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ exports[`Alert of type warning with text content should render an Alert componen
exports[`Alert with no props should render a default component 1`] = `
<InjectIntl(Alert)
intl={
Object {
"defaultFormats": Object {},
{
"defaultFormats": {},
"defaultLocale": "en",
"formatDate": [Function],
"formatHTMLMessage": [Function],
Expand All @@ -521,8 +521,8 @@ exports[`Alert with no props should render a default component 1`] = `
"formatPlural": [Function],
"formatRelative": [Function],
"formatTime": [Function],
"formats": Object {},
"formatters": Object {
"formats": {},
"formatters": {
"getDateTimeFormat": [Function],
"getMessageFormat": [Function],
"getNumberFormat": [Function],
Expand All @@ -542,8 +542,8 @@ exports[`Alert with no props should render a default component 1`] = `
customColorClass="custom-default-color"
disableAlertActionFocus={false}
intl={
Object {
"defaultFormats": Object {},
{
"defaultFormats": {},
"defaultLocale": "en",
"formatDate": [Function],
"formatHTMLMessage": [Function],
Expand All @@ -552,8 +552,8 @@ exports[`Alert with no props should render a default component 1`] = `
"formatPlural": [Function],
"formatRelative": [Function],
"formatTime": [Function],
"formats": Object {},
"formatters": Object {
"formats": {},
"formatters": {
"getDateTimeFormat": [Function],
"getMessageFormat": [Function],
"getNumberFormat": [Function],
Expand Down Expand Up @@ -784,8 +784,8 @@ exports[`Alert with props should render disableAlertActionFocus when provided 1`
<InjectIntl(Alert)
disableAlertActionFocus={true}
intl={
Object {
"defaultFormats": Object {},
{
"defaultFormats": {},
"defaultLocale": "en",
"formatDate": [Function],
"formatHTMLMessage": [Function],
Expand All @@ -794,8 +794,8 @@ exports[`Alert with props should render disableAlertActionFocus when provided 1`
"formatPlural": [Function],
"formatRelative": [Function],
"formatTime": [Function],
"formats": Object {},
"formatters": Object {
"formats": {},
"formatters": {
"getDateTimeFormat": [Function],
"getMessageFormat": [Function],
"getNumberFormat": [Function],
Expand All @@ -815,8 +815,8 @@ exports[`Alert with props should render disableAlertActionFocus when provided 1`
customColorClass="custom-default-color"
disableAlertActionFocus={true}
intl={
Object {
"defaultFormats": Object {},
{
"defaultFormats": {},
"defaultLocale": "en",
"formatDate": [Function],
"formatHTMLMessage": [Function],
Expand All @@ -825,8 +825,8 @@ exports[`Alert with props should render disableAlertActionFocus when provided 1`
"formatPlural": [Function],
"formatRelative": [Function],
"formatTime": [Function],
"formats": Object {},
"formatters": Object {
"formats": {},
"formatters": {
"getDateTimeFormat": [Function],
"getMessageFormat": [Function],
"getNumberFormat": [Function],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ exports[`Arrange should have all prop set correctly 1`] = `
<span
className="fit center fit-block"
style={
Object {
{
"maxWidth": "10px",
}
}
Expand All @@ -74,7 +74,7 @@ exports[`Arrange should have all prop set correctly 1`] = `
<span
className="fill center fill-block"
style={
Object {
{
"maxWidth": "20px",
}
}
Expand All @@ -86,7 +86,7 @@ exports[`Arrange should have all prop set correctly 1`] = `
<span
className="fit center"
style={
Object {
{
"maxWidth": "30px",
}
}
Expand Down
20 changes: 10 additions & 10 deletions packages/terra-avatar/tests/jest/__snapshots__/Avatar.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
exports[`Avatar correctly applies the theme context className 1`] = `
<ThemeContextProvider
intl={
Object {
"defaultFormats": Object {},
{
"defaultFormats": {},
"defaultLocale": "en",
"formatDate": [Function],
"formatHTMLMessage": [Function],
Expand All @@ -13,8 +13,8 @@ exports[`Avatar correctly applies the theme context className 1`] = `
"formatPlural": [Function],
"formatRelative": [Function],
"formatTime": [Function],
"formats": Object {},
"formatters": Object {
"formats": {},
"formatters": {
"getDateTimeFormat": [Function],
"getMessageFormat": [Function],
"getNumberFormat": [Function],
Expand All @@ -30,7 +30,7 @@ exports[`Avatar correctly applies the theme context className 1`] = `
}
}
theme={
Object {
{
"className": "orion-fusion-theme",
}
}
Expand All @@ -44,8 +44,8 @@ exports[`Avatar correctly applies the theme context className 1`] = `
color="auto"
initials="JS"
intl={
Object {
"defaultFormats": Object {},
{
"defaultFormats": {},
"defaultLocale": "en",
"formatDate": [Function],
"formatHTMLMessage": [Function],
Expand All @@ -54,8 +54,8 @@ exports[`Avatar correctly applies the theme context className 1`] = `
"formatPlural": [Function],
"formatRelative": [Function],
"formatTime": [Function],
"formats": Object {},
"formatters": Object {
"formats": {},
"formatters": {
"getDateTimeFormat": [Function],
"getMessageFormat": [Function],
"getNumberFormat": [Function],
Expand Down Expand Up @@ -192,7 +192,7 @@ exports[`Avatar should render an avatar with provided size 1`] = `
<div
className="avatar one"
style={
Object {
{
"fontSize": "5em",
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Facility correctly applies the theme context className 1`] = `
<ThemeContextProvider
theme={
Object {
{
"className": "orion-fusion-theme",
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
exports[`Badge with additional props correctly applies the theme context className 1`] = `
<InjectIntl(Badge)
intl={
Object {
"defaultFormats": Object {},
{
"defaultFormats": {},
"defaultLocale": "en",
"formatDate": [Function],
"formatHTMLMessage": [Function],
Expand All @@ -13,8 +13,8 @@ exports[`Badge with additional props correctly applies the theme context classNa
"formatPlural": [Function],
"formatRelative": [Function],
"formatTime": [Function],
"formats": Object {},
"formatters": Object {
"formats": {},
"formatters": {
"getDateTimeFormat": [Function],
"getMessageFormat": [Function],
"getNumberFormat": [Function],
Expand All @@ -35,8 +35,8 @@ exports[`Badge with additional props correctly applies the theme context classNa
icon={null}
intent="default"
intl={
Object {
"defaultFormats": Object {},
{
"defaultFormats": {},
"defaultLocale": "en",
"formatDate": [Function],
"formatHTMLMessage": [Function],
Expand All @@ -45,8 +45,8 @@ exports[`Badge with additional props correctly applies the theme context classNa
"formatPlural": [Function],
"formatRelative": [Function],
"formatTime": [Function],
"formats": Object {},
"formatters": Object {
"formats": {},
"formatters": {
"getDateTimeFormat": [Function],
"getMessageFormat": [Function],
"getNumberFormat": [Function],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
exports[`correctly applies the theme context className 1`] = `
<ThemeContextProvider
theme={
Object {
{
"className": "orion-fusion-theme",
}
}
>
<ButtonGroup
isBlock={false}
isMultiSelect={false}
selectedKeys={Array []}
selectedKeys={[]}
>
<div
className="button-group orion-fusion-theme"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`correctly applies the theme context className 1`] = `
<ThemeContextProvider
theme={
Object {
{
"className": "orion-fusion-theme",
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`correctly applies the theme context className 1`] = `
<ThemeContextProvider
theme={
Object {
{
"className": "orion-fusion-theme",
}
}
Expand Down Expand Up @@ -55,8 +55,8 @@ exports[`should pass in refCallback as the ref prop of the input element 1`] = `
isReversed={false}
refCallback={
[MockFunction] {
"calls": Array [
Array [
"calls": [
[
<button
aria-disabled="false"
class="button neutral"
Expand All @@ -74,8 +74,8 @@ exports[`should pass in refCallback as the ref prop of the input element 1`] = `
</button>,
],
],
"results": Array [
Object {
"results": [
{
"type": "return",
"value": undefined,
},
Expand Down Expand Up @@ -124,7 +124,7 @@ exports[`should render a Button with merged attributes 1`] = `
onKeyUp={[Function]}
onMouseDown={[Function]}
style={
Object {
{
"height": "100px",
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`should render a cell with width percentage 1`] = `
<div
className="cell"
style={
Object {
{
"flex": "0 0 0px",
"maxWidth": "20%",
"minWidth": "20%",
Expand All @@ -26,7 +26,7 @@ exports[`should render a cell with width scalar 1`] = `
<div
className="cell"
style={
Object {
{
"flex": "2 2 0px",
"msFlex": "2 2 0px",
}
Expand All @@ -38,7 +38,7 @@ exports[`should render a cell with width static 1`] = `
<div
className="cell"
style={
Object {
{
"flex": "0 0 0px",
"maxWidth": "40rem",
"minWidth": "40rem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`correctly applies the theme context className 1`] = `
<ThemeContextProvider
theme={
Object {
{
"className": "orion-fusion-theme",
}
}
Expand Down
Loading

0 comments on commit 5ecb145

Please sign in to comment.