Skip to content

Commit 66a9859

Browse files
committed
chore: restore tests by changing babel preset in tests
1 parent c4f6ed5 commit 66a9859

File tree

3 files changed

+47
-1373
lines changed

3 files changed

+47
-1373
lines changed

babel.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ module.exports = {
1414
],
1515
env: {
1616
test: {
17-
// https://github.com/react-native-community/upgrade-support/issues/152
18-
plugins: ['@babel/plugin-transform-flow-strip-types'],
17+
presets: ['@react-native/babel-preset'],
1918
},
2019
},
2120
};

src/__tests__/__snapshots__/render-debug.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ exports[`debug: shallow 1`] = `
396396
value=""
397397
/>
398398
<MyButton
399-
onPress={[Function changeFresh]}
399+
onPress={[Function anonymous]}
400400
>
401401
Change freshness!
402402
</MyButton>
@@ -447,7 +447,7 @@ exports[`debug: shallow with message 1`] = `
447447
value=""
448448
/>
449449
<MyButton
450-
onPress={[Function changeFresh]}
450+
onPress={[Function anonymous]}
451451
>
452452
Change freshness!
453453
</MyButton>

0 commit comments

Comments
 (0)