Skip to content

Commit b2020a3

Browse files
committed
Fix unit tests
1 parent ce1f886 commit b2020a3

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.babelrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
./**/__tests__/**/*.js
44
__mocks__/**/*.js
55
jest-setup.js
6+
babel.config.js

babel.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
3+
module.exports = {
4+
presets: ["module:metro-react-native-babel-preset"],
5+
plugins: [
6+
"@babel/plugin-transform-modules-commonjs",
7+
["@babel/plugin-proposal-decorators", { "legacy": true }],
8+
"@babel/plugin-syntax-export-namespace-from",
9+
"transform-export-extensions"
10+
],
11+
};

src/screens/WelcomeScreen/__tests__/WelcomeScreen.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ describe('WelcomeScreen', () => {
99
);
1010
expect(component).toMatchSnapshot();
1111
});
12-
});
12+
});

0 commit comments

Comments
 (0)