mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Upgrade jest and babel-jest to latest (v25)
This commit is contained in:
parent
26d5d7afdc
commit
2274b4b4e4
7888
awx/ui_next/package-lock.json
generated
7888
awx/ui_next/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -28,7 +28,7 @@
|
||||
"@nteract/mockument": "^1.0.4",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"babel-jest": "^24.7.1",
|
||||
"babel-jest": "^25.1.0",
|
||||
"babel-loader": "^8.0.6",
|
||||
"babel-plugin-macros": "^2.4.2",
|
||||
"babel-plugin-styled-components": "^1.10.0",
|
||||
@ -46,7 +46,7 @@
|
||||
"eslint-plugin-react-hooks": "^2.2.0",
|
||||
"file-loader": "^2.0.0",
|
||||
"history": "^4.9.0",
|
||||
"jest": "^24.7.1",
|
||||
"jest": "^25.1.0",
|
||||
"node-sass": "^4.13.1",
|
||||
"prettier": "^1.18.2",
|
||||
"react-hot-loader": "^4.3.3",
|
||||
|
||||
@ -43,7 +43,7 @@ exports[`<NotificationListItem canToggleNotifications /> initially renders succe
|
||||
dataListCells={
|
||||
Array [
|
||||
<DataListCell>
|
||||
<ForwardRef
|
||||
<Link
|
||||
to={
|
||||
Object {
|
||||
"pathname": "/foo",
|
||||
@ -55,7 +55,7 @@ exports[`<NotificationListItem canToggleNotifications /> initially renders succe
|
||||
>
|
||||
Foo
|
||||
</b>
|
||||
</ForwardRef>
|
||||
</Link>
|
||||
</DataListCell>,
|
||||
<DataListCell>
|
||||
Slack
|
||||
|
||||
@ -159,8 +159,8 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
||||
ariaDescribedById=""
|
||||
className=""
|
||||
header={
|
||||
<ForwardRef>
|
||||
<ForwardRef
|
||||
<AlertModal__Header>
|
||||
<Styled(ExclamationCircleIcon)
|
||||
size="lg"
|
||||
/>
|
||||
<Title
|
||||
@ -168,7 +168,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
||||
>
|
||||
Remove {0} Access
|
||||
</Title>
|
||||
</ForwardRef>
|
||||
</AlertModal__Header>
|
||||
}
|
||||
hideTitle={false}
|
||||
isFooterLeftAligned={true}
|
||||
@ -296,8 +296,8 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
||||
ariaDescribedById=""
|
||||
className=""
|
||||
header={
|
||||
<ForwardRef>
|
||||
<ForwardRef
|
||||
<AlertModal__Header>
|
||||
<Styled(ExclamationCircleIcon)
|
||||
size="lg"
|
||||
/>
|
||||
<Title
|
||||
@ -305,7 +305,7 @@ exports[`<DeleteRoleConfirmationModal /> should render initially 1`] = `
|
||||
>
|
||||
Remove {0} Access
|
||||
</Title>
|
||||
</ForwardRef>
|
||||
</AlertModal__Header>
|
||||
}
|
||||
hideTitle={false}
|
||||
id="pf-modal-0"
|
||||
|
||||
@ -57,7 +57,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
<Text
|
||||
component="h6"
|
||||
>
|
||||
<ForwardRef
|
||||
<Styled(Link)
|
||||
to={
|
||||
Object {
|
||||
"pathname": "/users/2/details",
|
||||
@ -65,10 +65,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
}
|
||||
>
|
||||
jane
|
||||
</ForwardRef>
|
||||
</Styled(Link)>
|
||||
</Text>
|
||||
</TextContent>
|
||||
<ForwardRef
|
||||
<DetailList
|
||||
stacked={true}
|
||||
>
|
||||
<Detail
|
||||
@ -77,10 +77,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
label="Name"
|
||||
value="jane brown"
|
||||
/>
|
||||
</ForwardRef>
|
||||
</DetailList>
|
||||
</DataListCell>,
|
||||
<DataListCell>
|
||||
<ForwardRef
|
||||
<DetailList
|
||||
stacked={true}
|
||||
>
|
||||
<Detail
|
||||
@ -105,7 +105,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
</ChipGroup>
|
||||
}
|
||||
/>
|
||||
</ForwardRef>
|
||||
</DetailList>
|
||||
</DataListCell>,
|
||||
]
|
||||
}
|
||||
@ -120,7 +120,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
<Text
|
||||
component="h6"
|
||||
>
|
||||
<ForwardRef
|
||||
<Styled(Link)
|
||||
to={
|
||||
Object {
|
||||
"pathname": "/users/2/details",
|
||||
@ -128,10 +128,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
}
|
||||
>
|
||||
jane
|
||||
</ForwardRef>
|
||||
</Styled(Link)>
|
||||
</Text>
|
||||
</TextContent>
|
||||
<ForwardRef
|
||||
<DetailList
|
||||
stacked={true}
|
||||
>
|
||||
<Detail
|
||||
@ -140,10 +140,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
label="Name"
|
||||
value="jane brown"
|
||||
/>
|
||||
</ForwardRef>
|
||||
</DetailList>
|
||||
</DataListCell>,
|
||||
<DataListCell>
|
||||
<ForwardRef
|
||||
<DetailList
|
||||
stacked={true}
|
||||
>
|
||||
<Detail
|
||||
@ -168,7 +168,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
</ChipGroup>
|
||||
}
|
||||
/>
|
||||
</ForwardRef>
|
||||
</DetailList>
|
||||
</DataListCell>,
|
||||
]
|
||||
}
|
||||
@ -206,7 +206,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
<Text
|
||||
component="h6"
|
||||
>
|
||||
<ForwardRef
|
||||
<Styled(Link)
|
||||
to={
|
||||
Object {
|
||||
"pathname": "/users/2/details",
|
||||
@ -214,10 +214,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
}
|
||||
>
|
||||
jane
|
||||
</ForwardRef>
|
||||
</Styled(Link)>
|
||||
</Text>
|
||||
</TextContent>
|
||||
<ForwardRef
|
||||
<DetailList
|
||||
stacked={true}
|
||||
>
|
||||
<Detail
|
||||
@ -226,10 +226,10 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
label="Name"
|
||||
value="jane brown"
|
||||
/>
|
||||
</ForwardRef>
|
||||
</DetailList>
|
||||
</DataListCell>,
|
||||
<DataListCell>
|
||||
<ForwardRef
|
||||
<DetailList
|
||||
stacked={true}
|
||||
>
|
||||
<Detail
|
||||
@ -254,7 +254,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
||||
</ChipGroup>
|
||||
}
|
||||
/>
|
||||
</ForwardRef>
|
||||
</DetailList>
|
||||
</DataListCell>,
|
||||
]
|
||||
}
|
||||
|
||||
@ -90,12 +90,12 @@ describe('<InventoryDetail />', () => {
|
||||
expectDetailToMatch(wrapper, 'Type', 'Inventory');
|
||||
const org = wrapper.find('Detail[label="Organization"]');
|
||||
expect(org.prop('value')).toMatchInlineSnapshot(`
|
||||
<ForwardRef
|
||||
to="/organizations/1/details"
|
||||
>
|
||||
The Organization
|
||||
</ForwardRef>
|
||||
`);
|
||||
<Link
|
||||
to="/organizations/1/details"
|
||||
>
|
||||
The Organization
|
||||
</Link>
|
||||
`);
|
||||
const vars = wrapper.find('VariablesDetail');
|
||||
expect(vars).toHaveLength(1);
|
||||
expect(vars.prop('value')).toEqual(mockInventory.variables);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user