react-native-boilerplate icon indicating copy to clipboard operation
react-native-boilerplate copied to clipboard

AssertionError: expected 'comment' to equal [Function]

Open limcheekin opened this issue 9 years ago • 8 comments

Hi there,

I clone the repo and following https://github.com/multunus/React-Native-TDD-Tutorial, while I run the first test, it failed with the following error:

  1. should be a view component: AssertionError: expected 'comment' to equal [Function]

I run the "npm test" in Windows 7, NodeJs v6.3.1 and Npm v3.10.3.

Please advise. Thank you.

limcheekin avatar Aug 17 '16 14:08 limcheekin

Hi, Even I'm facing the same issue. Did you get the solution for this?

deepthirupesh avatar Dec 08 '16 10:12 deepthirupesh

@deepthirupesh Apologies for the delay. We will get back to you on this one in a few hours.

akshaysmurthy avatar Dec 13 '16 05:12 akshaysmurthy

@akshaysmurthy, let me know if you need more detials. Thanks in advance!

deepthirupesh avatar Dec 14 '16 06:12 deepthirupesh

@deepthirupesh Thanks for reaching out again :) Are you also on a setup similar to @limcheekin's? i.e., Windows 7, NodeJs v6.3.1 and Npm v3.10.3

And @limcheekin I know it's been a while, but did you fix this? :)

akshaysmurthy avatar Dec 14 '16 08:12 akshaysmurthy

No good news in Windows environment. However, I managed to execute it in Mac OS environment.

limcheekin avatar Dec 14 '16 09:12 limcheekin

@akshaysmurthy, I'm on windows 7 and below are the Node and Npm version details

{ shswebvoiceagentui: '0.1.0', npm: '3.3.12', ares: '1.10.1-DEV', http_parser: '2.6.0', icu: '56.1', modules: '47', node: '5.3.0', openssl: '1.0.2e', uv: '1.8.0', v8: '4.6.85.31', zlib: '1.2.8' }

deepthirupesh avatar Dec 14 '16 11:12 deepthirupesh

Thanks for that info @deepthirupesh. Unfortunately, I do not think we will be able to immediately help you out with the issue on Windows. Also, we are working on an update to the boiler plate and the tutorial to better align with the latest developments in React Native.

@limcheekin Are you saying that on a Mac, you did not face this specific problem?

akshaysmurthy avatar Dec 15 '16 13:12 akshaysmurthy

@deepthirupesh, FYI we tried this out on our local setup with Node 7.2.1 and npm 3.10.9 on a Mac, and all the tests run just fine. So, I guess this is working fine on Linux / Mac.

akshaysmurthy avatar Dec 15 '16 16:12 akshaysmurthy