Unable to run the tests
hemraj-s opened this issue · comments
I am getting an error when running the tests on my machine. The error is as follows:
FAIL __tests__\index.android.js
? Test suite failed to run
E:/react-native/react-native-contacts-test-master/__tests__/index.android.js
: Unexpected token (10:4)
8 | it('renders correctly', () => {
9 | const tree = renderer.create(
> 10 | <Index />
| ^
11 | );
12 | });
13 |
Can you help please.
Steps that I followed:
- Extracted the folder
- Ran "yarn install"
- Ran "npm test"
TIA
I bet it's a babel config issue.
Can you help with more details to help fix the same.
TIA
From: Harry Moreno <notifications@github.com>
To: morenoh149/react-native-contacts-test <react-native-contacts-test@noreply.github.com>
Cc: hemraj-s <hemraj_s2000@yahoo.com>; Author <author@noreply.github.com>
Sent: Tuesday, 26 September 2017, 3:40
Subject: Re: [morenoh149/react-native-contacts-test] Unable to run the tests (#5)
I bet it's a babel config issue.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
I'm not sure, but I'd look into the babel config and making sure that the Index
component is available. I can look into this when I have time but I have no eta.
Thanks for the pointer. Will go through and check it out. Appreciate the help.
From: Harry Moreno <notifications@github.com>
To: morenoh149/react-native-contacts-test <react-native-contacts-test@noreply.github.com>
Cc: hemraj-s <hemraj_s2000@yahoo.com>; Author <author@noreply.github.com>
Sent: Tuesday, 26 September 2017, 20:59
Subject: Re: [morenoh149/react-native-contacts-test] Unable to run the tests (#5)
I'm not sure, but I'd look into the babel config and making sure that the Index component is available. I can look into this when I have time but I have no eta.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.