Skip to content

Commit

Permalink
chore: Update Jest to v29
Browse files Browse the repository at this point in the history
Jest has been updated to v29, along with related dependencies. This
change comes with a number of new features, such as the new
`jest.replaceProperty()` function.

The only breaking change affecting us is a change to the snapshot
format. All snapshots have been updated.

See here for the migration guide: https://jest-archive-august-2023.netlify.app/docs/upgrading-to-jest29/

See here for a full list of changes: https://github.com/jestjs/jest/blob/main/CHANGELOG.md#2900
  • Loading branch information
Gudahtt committed Sep 16, 2023
1 parent 31744a1 commit 49623bf
Show file tree
Hide file tree
Showing 242 changed files with 8,017 additions and 7,870 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Component ContractBoxBase should render correctly 1`] = `
<View
style={
Object {
{
"flex": 1,
"flexDirection": "row",
"justifyContent": "space-between",
Expand All @@ -13,22 +13,22 @@ exports[`Component ContractBoxBase should render correctly 1`] = `
>
<View
style={
Object {
{
"alignItems": "center",
"flexDirection": "row",
}
}
>
<View
style={
Object {
{
"marginRight": 16,
}
}
>
<Avatar
imageSource={
Object {
{
"uri": "https://assets.coingecko.com/coins/images/279/small/ethereum.png?1595348880",
}
}
Expand All @@ -41,7 +41,7 @@ exports[`Component ContractBoxBase should render correctly 1`] = `
>
<Text
style={
Object {
{
"color": "#0376C9",
}
}
Expand All @@ -58,7 +58,7 @@ exports[`Component ContractBoxBase should render correctly 1`] = `
</View>
<View
style={
Object {
{
"alignItems": "center",
"flexDirection": "row",
"justifyContent": "space-between",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
exports[`CustomInput should render correctly 1`] = `
<View
style={
Array [
Object {
[
{
"backgroundColor": "#FFFFFF",
"borderRadius": 8,
"flexDirection": "row",
Expand All @@ -18,7 +18,7 @@ exports[`CustomInput should render correctly 1`] = `
>
<View
style={
Object {
{
"alignItems": "center",
"flex": 1,
"flexDirection": "row",
Expand All @@ -31,8 +31,8 @@ exports[`CustomInput should render correctly 1`] = `
onChangeText={[Function]}
placeholder="Enter a number here"
style={
Array [
Object {
[
{
"color": "#24272A",
"flexGrow": 1,
"fontFamily": "Euclid Circular B",
Expand All @@ -54,7 +54,7 @@ exports[`CustomInput should render correctly 1`] = `
<Text
onPress={[Function]}
style={
Object {
{
"color": "#535A61",
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`CustomSpendCap should match snapshot 1`] = `
<View
style={
Object {
{
"backgroundColor": "#F2F4F6",
"borderRadius": 8,
"padding": 16,
Expand All @@ -13,23 +13,23 @@ exports[`CustomSpendCap should match snapshot 1`] = `
>
<View
style={
Object {
{
"flexDirection": "row",
"justifyContent": "space-between",
}
}
>
<View
style={
Object {
{
"alignItems": "center",
"flexDirection": "row",
}
}
>
<Text
style={
Object {
{
"color": "#24272A",
"fontFamily": "Euclid Circular B",
"fontSize": 14,
Expand All @@ -44,7 +44,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
</Text>
<View
accessibilityState={
Object {
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
Expand All @@ -53,7 +53,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
}
}
accessibilityValue={
Object {
{
"max": undefined,
"min": undefined,
"now": undefined,
Expand All @@ -78,7 +78,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
height={16}
name="Danger"
style={
Object {
{
"height": 16,
"width": 16,
}
Expand All @@ -93,7 +93,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
onPressIn={[Function]}
onPressOut={[Function]}
style={
Object {
{
"alignItems": "center",
"alignSelf": "flex-start",
"backgroundColor": "transparent",
Expand All @@ -109,7 +109,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
>
<Text
style={
Object {
{
"color": "#0376C9",
"fontFamily": "Euclid Circular B",
"fontSize": 14,
Expand All @@ -125,15 +125,15 @@ exports[`CustomSpendCap should match snapshot 1`] = `
</View>
<View
style={
Object {
{
"marginTop": 8,
}
}
>
<View
style={
Array [
Object {
[
{
"backgroundColor": "#FFFFFF",
"borderRadius": 8,
"flexDirection": "row",
Expand All @@ -147,7 +147,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
>
<View
style={
Object {
{
"alignItems": "center",
"flex": 1,
"flexDirection": "row",
Expand All @@ -160,8 +160,8 @@ exports[`CustomSpendCap should match snapshot 1`] = `
onChangeText={[Function]}
placeholder="Enter a number here"
style={
Array [
Object {
[
{
"color": "#24272A",
"flexGrow": 1,
"fontFamily": "Euclid Circular B",
Expand All @@ -173,7 +173,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
"paddingBottom": 0,
"paddingTop": 0,
},
Object {
{
"color": "#D73847",
},
]
Expand All @@ -185,7 +185,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
<Text
onPress={[Function]}
style={
Object {
{
"color": "#535A61",
"fontFamily": "Euclid Circular B",
"fontSize": 12,
Expand All @@ -202,14 +202,14 @@ exports[`CustomSpendCap should match snapshot 1`] = `
</View>
<View
style={
Object {
{
"marginTop": 16,
}
}
>
<Text
style={
Object {
{
"color": "#535A61",
"fontFamily": "Euclid Circular B",
"fontSize": 14,
Expand All @@ -227,7 +227,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
onPressIn={[Function]}
onPressOut={[Function]}
style={
Object {
{
"alignItems": "center",
"alignSelf": "flex-start",
"backgroundColor": "transparent",
Expand All @@ -242,7 +242,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
>
<Text
style={
Object {
{
"color": "#0376C9",
"fontFamily": "Euclid Circular B",
"fontSize": 14,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`Accordion - Snapshot should render a proper expanded state 1`] = `
<AccordionHeader
isExpanded={true}
onPress={[Function]}
style={Object {}}
style={{}}
testID="accordion"
title="Sample Accordion Header Title"
/>
Expand All @@ -22,7 +22,7 @@ exports[`Accordion - Snapshot should render default settings correctly 1`] = `
<AccordionHeader
isExpanded={false}
onPress={[Function]}
style={Object {}}
style={{}}
testID="accordion"
title="Sample Accordion Header Title"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`AccordionHeader - Snapshot should render a rotated down Arrow if isExpa
activeOpacity={0.5}
onPress={[Function]}
style={
Object {
{
"alignItems": "center",
"flexDirection": "row",
"height": 24,
Expand All @@ -16,7 +16,7 @@ exports[`AccordionHeader - Snapshot should render a rotated down Arrow if isExpa
>
<Text
style={
Object {
{
"color": "#0376C9",
}
}
Expand All @@ -27,13 +27,13 @@ exports[`AccordionHeader - Snapshot should render a rotated down Arrow if isExpa
</Text>
<View
style={
Array [
Object {
[
{
"marginLeft": 4,
},
Object {
"transform": Array [
Object {
{
"transform": [
{
"rotate": "180deg",
},
],
Expand All @@ -57,7 +57,7 @@ exports[`AccordionHeader - Snapshot should render default settings correctly 1`]
activeOpacity={0.5}
onPress={[Function]}
style={
Object {
{
"alignItems": "center",
"flexDirection": "row",
"height": 24,
Expand All @@ -68,7 +68,7 @@ exports[`AccordionHeader - Snapshot should render default settings correctly 1`]
>
<Text
style={
Object {
{
"color": "#0376C9",
}
}
Expand All @@ -79,13 +79,13 @@ exports[`AccordionHeader - Snapshot should render default settings correctly 1`]
</Text>
<View
style={
Array [
Object {
[
{
"marginLeft": 4,
},
Object {
"transform": Array [
Object {
{
"transform": [
{
"rotate": "0deg",
},
],
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`AvatarFavicon should match the snapshot 1`] = `
<AvatarBase
size="48"
style={
Object {
{
"borderRadius": 0,
}
}
Expand All @@ -13,12 +13,12 @@ exports[`AvatarFavicon should match the snapshot 1`] = `
onError={[Function]}
resizeMode="contain"
source={
Object {
{
"uri": "https://uniswap.org/favicon.ico",
}
}
style={
Object {
{
"flex": 1,
"height": undefined,
"width": undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`AvatarIcon should render correctly 1`] = `
<AvatarBase
size="40"
style={
Object {
{
"alignItems": "center",
"backgroundColor": "#0376C919",
"justifyContent": "center",
Expand Down
Loading

0 comments on commit 49623bf

Please sign in to comment.