New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLI] Adds Testing to CLI #727
Conversation
Why did you close this? I don't know if we have this in the docs, but to run the tests do $ npm test we use Jest for testing, but unfortunately it doesn't work on Also I believe in order for Jest to find your test it has to be named |
@@ -83,6 +83,20 @@ module.exports = { | |||
throw e; | |||
} | |||
} | |||
|
|||
return { | |||
podfileExists: function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@frantic Ahh that makes sense, some of it was failing in Travis CI, but working when doing npm test, so I'll figure that out and commit. |
@tommchugh I think the problem is in using current dir in both tests and code. For example, your |
@frantic Yep that looks like it. All is well with Travis. |
@frantic - is this still relevant? seems like a clean merge still if not 😄 |
We have a nice end-to-end test, so not sure if still relevant - @frantic: can you either close out or review if you want it? |
Actually Tadeu's been looking at this stuff more lately and frantic is on vacation... |
yaytests Tests are always relevant! 😄 |
[CLI] Adds Testing to CLI
This PR adds the necessary testing to the install command for the cli.
Testing checks for: Podfile existing, Containing React-Native Tags, and for React Pod to be included.