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 authored and legobeat committed Apr 30, 2024
1 parent 2c0685e commit 836d88c
Show file tree
Hide file tree
Showing 289 changed files with 18,947 additions and 18,947 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,15 +13,15 @@ exports[`CustomSpendCap should match snapshot 1`] = `
>
<View
style={
Object {
{
"flexDirection": "row",
"justifyContent": "space-between",
}
}
>
<View
style={
Object {
{
"alignItems": "center",
"flexDirection": "row",
}
Expand All @@ -30,7 +30,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
<Text
accessibilityRole="text"
style={
Object {
{
"color": "#24272A",
"fontFamily": "Euclid Circular B",
"fontSize": 14,
Expand All @@ -45,7 +45,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
</Text>
<View
accessibilityState={
Object {
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
Expand All @@ -54,7 +54,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
}
}
accessibilityValue={
Object {
{
"max": undefined,
"min": undefined,
"now": undefined,
Expand All @@ -79,7 +79,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
height={16}
name="Danger"
style={
Object {
{
"height": 16,
"width": 16,
}
Expand All @@ -95,7 +95,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
onPressIn={[Function]}
onPressOut={[Function]}
style={
Object {
{
"backgroundColor": "transparent",
"color": "#24272A",
}
Expand All @@ -106,7 +106,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
<Text
accessibilityRole="text"
style={
Object {
{
"color": "#0376C9",
"fontFamily": "Euclid Circular B",
"fontSize": 14,
Expand All @@ -122,15 +122,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 @@ -144,7 +144,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
>
<View
style={
Object {
{
"alignItems": "center",
"flex": 1,
"flexDirection": "row",
Expand All @@ -157,8 +157,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 @@ -170,7 +170,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
"paddingBottom": 0,
"paddingTop": 0,
},
Object {
{
"color": "#D73847",
},
]
Expand All @@ -183,7 +183,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
accessibilityRole="text"
onPress={[Function]}
style={
Object {
{
"color": "#535A61",
"fontFamily": "Euclid Circular B",
"fontSize": 12,
Expand All @@ -200,15 +200,15 @@ exports[`CustomSpendCap should match snapshot 1`] = `
</View>
<View
style={
Object {
{
"marginTop": 16,
}
}
>
<Text
accessibilityRole="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 {
{
"backgroundColor": "transparent",
"color": "#24272A",
}
Expand All @@ -237,7 +237,7 @@ exports[`CustomSpendCap should match snapshot 1`] = `
<Text
accessibilityRole="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 @@ -3,7 +3,7 @@
exports[`TagColored should render TagColored 1`] = `
<View
style={
Object {
{
"alignItems": "center",
"alignSelf": "flex-start",
"backgroundColor": "#F2F4F6",
Expand All @@ -18,7 +18,7 @@ exports[`TagColored should render TagColored 1`] = `
<Text
accessibilityRole="text"
style={
Object {
{
"color": "#535A61",
"fontFamily": "Euclid Circular B",
"fontSize": 10,
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.

Loading

0 comments on commit 836d88c

Please sign in to comment.