Skip to content

Commit 6bd6983

Browse files
committed
test(intro-screen-native): fix test
1 parent b88bbd7 commit 6bd6983

File tree

4 files changed

+1473
-36
lines changed

4 files changed

+1473
-36
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,19 @@
7171
"husky": "^8.0.3",
7272
"identity-obj-proxy": "^3.0.0",
7373
"image-js": "^0.35.6",
74+
"jest": "^30.0.4",
7475
"lint-staged": "^10.5.4",
7576
"mendix-client": "^7.15.8",
7677
"patch-package": "^8.0.0",
7778
"pixelmatch": "^5.3.0",
7879
"pngjs": "^6.0.0",
7980
"prettier": "^2.8.8",
81+
"pretty-format": "^30.0.2",
8082
"pretty-quick": "^3.3.1",
8183
"react-dom": "18.3.1",
8284
"recursive-copy": "^2.0.14",
8385
"rollup": "^2.79.2",
86+
"ts-jest": "^29.4.0",
8487
"ts-node": "^10.9.2"
8588
},
8689
"commitlint": {

packages/pluggableWidgets/intro-screen-native/src/__tests__/__snapshots__/IntroScreen.notch.spec.tsx.snap

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ exports[`Intro Screen renders 1`] = `
3737
extraData={0}
3838
getItem={[Function]}
3939
getItemCount={[Function]}
40+
getItemLayout={[Function]}
4041
horizontal={true}
42+
initialScrollIndex={0}
4143
keyExtractor={[Function]}
4244
onContentSizeChange={[Function]}
4345
onLayout={[Function]}
@@ -64,7 +66,6 @@ exports[`Intro Screen renders 1`] = `
6466
<View>
6567
<View
6668
onFocusCapture={[Function]}
67-
onLayout={[Function]}
6869
style={
6970
[
7071
{
@@ -225,7 +226,9 @@ exports[`Intro Screen renders with 1 bottom button 1`] = `
225226
extraData={0}
226227
getItem={[Function]}
227228
getItemCount={[Function]}
229+
getItemLayout={[Function]}
228230
horizontal={true}
231+
initialScrollIndex={0}
229232
keyExtractor={[Function]}
230233
onContentSizeChange={[Function]}
231234
onLayout={[Function]}
@@ -252,7 +255,6 @@ exports[`Intro Screen renders with 1 bottom button 1`] = `
252255
<View>
253256
<View
254257
onFocusCapture={[Function]}
255-
onLayout={[Function]}
256258
style={
257259
[
258260
{
@@ -427,7 +429,9 @@ exports[`Intro Screen renders with 2 bottom button 1`] = `
427429
extraData={0}
428430
getItem={[Function]}
429431
getItemCount={[Function]}
432+
getItemLayout={[Function]}
430433
horizontal={true}
434+
initialScrollIndex={0}
431435
keyExtractor={[Function]}
432436
onContentSizeChange={[Function]}
433437
onLayout={[Function]}
@@ -454,7 +458,6 @@ exports[`Intro Screen renders with 2 bottom button 1`] = `
454458
<View>
455459
<View
456460
onFocusCapture={[Function]}
457-
onLayout={[Function]}
458461
style={
459462
[
460463
{
@@ -629,7 +632,9 @@ exports[`Intro Screen renders with active slide attribute 1`] = `
629632
extraData={0}
630633
getItem={[Function]}
631634
getItemCount={[Function]}
635+
getItemLayout={[Function]}
632636
horizontal={true}
637+
initialScrollIndex={0}
633638
keyExtractor={[Function]}
634639
onContentSizeChange={[Function]}
635640
onLayout={[Function]}
@@ -656,7 +661,6 @@ exports[`Intro Screen renders with active slide attribute 1`] = `
656661
<View>
657662
<View
658663
onFocusCapture={[Function]}
659-
onLayout={[Function]}
660664
style={
661665
[
662666
{

packages/pluggableWidgets/intro-screen-native/src/__tests__/__snapshots__/IntroScreen.spec.tsx.snap

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ exports[`Intro Screen renders 1`] = `
3737
extraData={0}
3838
getItem={[Function]}
3939
getItemCount={[Function]}
40+
getItemLayout={[Function]}
4041
horizontal={true}
42+
initialScrollIndex={0}
4143
keyExtractor={[Function]}
4244
onContentSizeChange={[Function]}
4345
onLayout={[Function]}
@@ -64,7 +66,6 @@ exports[`Intro Screen renders 1`] = `
6466
<View>
6567
<View
6668
onFocusCapture={[Function]}
67-
onLayout={[Function]}
6869
style={
6970
[
7071
{
@@ -225,7 +226,9 @@ exports[`Intro Screen renders with 1 bottom button 1`] = `
225226
extraData={0}
226227
getItem={[Function]}
227228
getItemCount={[Function]}
229+
getItemLayout={[Function]}
228230
horizontal={true}
231+
initialScrollIndex={0}
229232
keyExtractor={[Function]}
230233
onContentSizeChange={[Function]}
231234
onLayout={[Function]}
@@ -252,7 +255,6 @@ exports[`Intro Screen renders with 1 bottom button 1`] = `
252255
<View>
253256
<View
254257
onFocusCapture={[Function]}
255-
onLayout={[Function]}
256258
style={
257259
[
258260
{
@@ -427,7 +429,9 @@ exports[`Intro Screen renders with 2 bottom button 1`] = `
427429
extraData={0}
428430
getItem={[Function]}
429431
getItemCount={[Function]}
432+
getItemLayout={[Function]}
430433
horizontal={true}
434+
initialScrollIndex={0}
431435
keyExtractor={[Function]}
432436
onContentSizeChange={[Function]}
433437
onLayout={[Function]}
@@ -454,7 +458,6 @@ exports[`Intro Screen renders with 2 bottom button 1`] = `
454458
<View>
455459
<View
456460
onFocusCapture={[Function]}
457-
onLayout={[Function]}
458461
style={
459462
[
460463
{
@@ -629,7 +632,9 @@ exports[`Intro Screen renders with active slide attribute 1`] = `
629632
extraData={0}
630633
getItem={[Function]}
631634
getItemCount={[Function]}
635+
getItemLayout={[Function]}
632636
horizontal={true}
637+
initialScrollIndex={0}
633638
keyExtractor={[Function]}
634639
onContentSizeChange={[Function]}
635640
onLayout={[Function]}
@@ -656,7 +661,6 @@ exports[`Intro Screen renders with active slide attribute 1`] = `
656661
<View>
657662
<View
658663
onFocusCapture={[Function]}
659-
onLayout={[Function]}
660664
style={
661665
[
662666
{

0 commit comments

Comments
 (0)