Hello, with this project GitHub - elgsantos/expo-template-typescript-jest: A React Native Template using Expo, Typescript and Jest I can run yarn test with Expo SDK 40, 41 and 42. But it stop work with expo upgrade 43. The errors are:
yarn run v1.22.15
$ jest
FAIL src/helpers/calc/sum.spec.ts
● Test suite failed to run
/home/andro/apps/test/expo-template-typescript-jest/node_modules/@react-native/polyfills/error-guard.js:14
type ErrorHandler = (error: mixed, isFatal: boolean) => void;
^^^^^^^^^^^^
SyntaxError: Unexpected identifier
at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1350:14)
FAIL ./App.spec.tsx
● Test suite failed to run
/home/andro/apps/test/expo-template-typescript-jest/node_modules/@react-native/polyfills/error-guard.js:14
type ErrorHandler = (error: mixed, isFatal: boolean) => void;
^^^^^^^^^^^^
SyntaxError: Unexpected identifier
at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1350:14)
Test Suites: 2 failed, 2 total
Tests: 0 total
Snapshots: 0 total
Time: 1.895 s, estimated 8 s
Ran all test suites.
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.