typeorm / expo-example

Example of using the Expo driver with TypeORM
30 stars 53 forks source link

Running test fails #1

Closed osamaqarem closed 4 years ago

osamaqarem commented 5 years ago

Hi, by cloning this repo and running the "test" script, the following error is encountered:

    .../expo-example/node_modules/typeorm/browser/index.js:38
    import "reflect-metadata";
           ^^^^^^^^^^^^^^^^^^

    SyntaxError: Unexpected string

      3 | import {
      4 |   StyleSheet,
    > 5 |   Text,
      6 |   View
      7 | } from 'react-native';
      8 | 

      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:316:17)
      at Object.<anonymous> (src/AppRoot.tsx:5:16)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        2.773s
Ran all test suites.

I'm new to Jest and testing in general. I want to test my own expo/typeorm project. Any help would be great.