-
Notifications
You must be signed in to change notification settings - Fork 415
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
Npm test fails #35
Comments
Not sure what test you are running as there is no test included in the repo. Testing is done manually since it needs a webcam and stuff. Mocking all that would be more work than testing it manual every release. |
Aah i see, |
How to ignore it so test passes? |
Use shallow rendering (http://airbnb.io/enzyme/docs/api/shallow.html). This way the QR reader component shouldn't be rendered. |
alright, thank a lot for a quick response and the module. It works great for my app! |
Happy to help, great to hear 👍 . |
Running npm test always fails.
` FAIL src/App.test.js
● renders without crashing
✕ renders without crashing (31ms)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 1.75s
Ran all test suites.
`
The text was updated successfully, but these errors were encountered: