R
^^^^^^
SyntaxError: Unexpected token export
Size: a a a
R
A
E
A
E
ДР
R
Test suite failed to run
Invariant Violation: Native module cannot be null.
at invariant (node_modules/invariant/invariant.js:40:15)
at new invariant (node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.js:36:7)
at Object.<anonymous> (node_modules/react-native-reanimated/src/ReanimatedEventEmitter.js:4:16)
at Object.<anonymous> (node_modules/react-native-reanimated/src/core/AnimatedCall.js:1:1)
R
"jest": {
"preset": "react-native",
"transformIgnorePatterns": [
"./node_modules/(?!react-navigation|react-native|react-native-safe-area-view/.*)"
],
"transform": {
"^.+\\.(js)$": "<rootDir>/node_modules/babel-jest",
"\\.(ts|tsx)$": "ts-jest"
},
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.jest.json"
}
},
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"cacheDirectory": ".jest/cache"
}R
import React from 'react';
import 'react-native';
import * as renderer from 'react-test-renderer';
import App from './App';
// Note: test renderer must be required after react-native.
it('renders correctly', () => {
renderer.create(<App />);
});
R
R
A
GB
A
V
V
A
V
A
s
popToTop