Upgrade jest and babel-jest to latest (v25)

This commit is contained in:
mabashian
2020-03-18 09:44:08 -04:00
parent 26d5d7afdc
commit 2274b4b4e4
6 changed files with 4563 additions and 3393 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -28,7 +28,7 @@
"@nteract/mockument": "^1.0.4", "@nteract/mockument": "^1.0.4",
"babel-core": "^7.0.0-bridge.0", "babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1", "babel-eslint": "^10.0.1",
"babel-jest": "^24.7.1", "babel-jest": "^25.1.0",
"babel-loader": "^8.0.6", "babel-loader": "^8.0.6",
"babel-plugin-macros": "^2.4.2", "babel-plugin-macros": "^2.4.2",
"babel-plugin-styled-components": "^1.10.0", "babel-plugin-styled-components": "^1.10.0",
@@ -46,7 +46,7 @@
"eslint-plugin-react-hooks": "^2.2.0", "eslint-plugin-react-hooks": "^2.2.0",
"file-loader": "^2.0.0", "file-loader": "^2.0.0",
"history": "^4.9.0", "history": "^4.9.0",
"jest": "^24.7.1", "jest": "^25.1.0",
"node-sass": "^4.13.1", "node-sass": "^4.13.1",
"prettier": "^1.18.2", "prettier": "^1.18.2",
"react-hot-loader": "^4.3.3", "react-hot-loader": "^4.3.3",

View File

@@ -43,7 +43,7 @@ exports[`<NotificationListItem canToggleNotifications /> initially renders succe
dataListCells={ dataListCells={
Array [ Array [
<DataListCell> <DataListCell>
<ForwardRef <Link
to={ to={
Object { Object {
"pathname": "/foo", "pathname": "/foo",
@@ -55,7 +55,7 @@ exports[`<NotificationListItem canToggleNotifications /> initially renders succe
> >
Foo Foo
</b> </b>
</ForwardRef> </Link>
</DataListCell>, </DataListCell>,
<DataListCell> <DataListCell>
Slack Slack

View File

@@ -159,8 +159,8 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
ariaDescribedById="" ariaDescribedById=""
className="" className=""
header={ header={
<ForwardRef> <AlertModal__Header>
<ForwardRef <Styled(ExclamationCircleIcon)
size="lg" size="lg"
/> />
<Title <Title
@@ -168,7 +168,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
> >
Remove {0} Access Remove {0} Access
</Title> </Title>
</ForwardRef> </AlertModal__Header>
} }
hideTitle={false} hideTitle={false}
isFooterLeftAligned={true} isFooterLeftAligned={true}
@@ -296,8 +296,8 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
ariaDescribedById="" ariaDescribedById=""
className="" className=""
header={ header={
<ForwardRef> <AlertModal__Header>
<ForwardRef <Styled(ExclamationCircleIcon)
size="lg" size="lg"
/> />
<Title <Title
@@ -305,7 +305,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
> >
Remove {0} Access Remove {0} Access
</Title> </Title>
</ForwardRef> </AlertModal__Header>
} }
hideTitle={false} hideTitle={false}
id="pf-modal-0" id="pf-modal-0"

View File

@@ -57,7 +57,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
<Text <Text
component="h6" component="h6"
> >
<ForwardRef <Styled(Link)
to={ to={
Object { Object {
"pathname": "/users/2/details", "pathname": "/users/2/details",
@@ -65,10 +65,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
} }
> >
jane jane
</ForwardRef> </Styled(Link)>
</Text> </Text>
</TextContent> </TextContent>
<ForwardRef <DetailList
stacked={true} stacked={true}
> >
<Detail <Detail
@@ -77,10 +77,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
label="Name" label="Name"
value="jane brown" value="jane brown"
/> />
</ForwardRef> </DetailList>
</DataListCell>, </DataListCell>,
<DataListCell> <DataListCell>
<ForwardRef <DetailList
stacked={true} stacked={true}
> >
<Detail <Detail
@@ -105,7 +105,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
</ChipGroup> </ChipGroup>
} }
/> />
</ForwardRef> </DetailList>
</DataListCell>, </DataListCell>,
] ]
} }
@@ -120,7 +120,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
<Text <Text
component="h6" component="h6"
> >
<ForwardRef <Styled(Link)
to={ to={
Object { Object {
"pathname": "/users/2/details", "pathname": "/users/2/details",
@@ -128,10 +128,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
} }
> >
jane jane
</ForwardRef> </Styled(Link)>
</Text> </Text>
</TextContent> </TextContent>
<ForwardRef <DetailList
stacked={true} stacked={true}
> >
<Detail <Detail
@@ -140,10 +140,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
label="Name" label="Name"
value="jane brown" value="jane brown"
/> />
</ForwardRef> </DetailList>
</DataListCell>, </DataListCell>,
<DataListCell> <DataListCell>
<ForwardRef <DetailList
stacked={true} stacked={true}
> >
<Detail <Detail
@@ -168,7 +168,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
</ChipGroup> </ChipGroup>
} }
/> />
</ForwardRef> </DetailList>
</DataListCell>, </DataListCell>,
] ]
} }
@@ -206,7 +206,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
<Text <Text
component="h6" component="h6"
> >
<ForwardRef <Styled(Link)
to={ to={
Object { Object {
"pathname": "/users/2/details", "pathname": "/users/2/details",
@@ -214,10 +214,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
} }
> >
jane jane
</ForwardRef> </Styled(Link)>
</Text> </Text>
</TextContent> </TextContent>
<ForwardRef <DetailList
stacked={true} stacked={true}
> >
<Detail <Detail
@@ -226,10 +226,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
label="Name" label="Name"
value="jane brown" value="jane brown"
/> />
</ForwardRef> </DetailList>
</DataListCell>, </DataListCell>,
<DataListCell> <DataListCell>
<ForwardRef <DetailList
stacked={true} stacked={true}
> >
<Detail <Detail
@@ -254,7 +254,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
</ChipGroup> </ChipGroup>
} }
/> />
</ForwardRef> </DetailList>
</DataListCell>, </DataListCell>,
] ]
} }

View File

@@ -90,12 +90,12 @@ describe('<InventoryDetail />', () => {
expectDetailToMatch(wrapper, 'Type', 'Inventory'); expectDetailToMatch(wrapper, 'Type', 'Inventory');
const org = wrapper.find('Detail[label="Organization"]'); const org = wrapper.find('Detail[label="Organization"]');
expect(org.prop('value')).toMatchInlineSnapshot(` expect(org.prop('value')).toMatchInlineSnapshot(`
<ForwardRef <Link
to="/organizations/1/details" to="/organizations/1/details"
> >
The Organization The Organization
</ForwardRef> </Link>
`); `);
const vars = wrapper.find('VariablesDetail'); const vars = wrapper.find('VariablesDetail');
expect(vars).toHaveLength(1); expect(vars).toHaveLength(1);
expect(vars.prop('value')).toEqual(mockInventory.variables); expect(vars.prop('value')).toEqual(mockInventory.variables);