Skip to content

Instantly share code, notes, and snippets.

@vagusX
Last active December 15, 2015 13:36
Show Gist options
  • Save vagusX/0be99afd52d82c492643 to your computer and use it in GitHub Desktop.
Save vagusX/0be99afd52d82c492643 to your computer and use it in GitHub Desktop.
log about jest
Running 1 test suite...Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).
FAIL __tests__/checkbox-test.js (0.723s)
● Checkbox › it changes the text after click
- Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
at invariant (node_modules/react/node_modules/fbjs/lib/inva
> react-barbecuejs@0.0.2 test /Users/vagusx/code/samples/barbecue.js
> NODE_ENV=test BABEL_JEST_STAGE=0 jest
Using Jest CLI v0.8.1, jasmine1
FAIL __tests__/checkbox-test.js (0.802s)
● Checkbox › it changes the text after click
- TypeError: Cannot read property 'textContent' of null
at Spec.<anonymous> (__tests__/checkbox-test.js:18:24)
1 test failed, 0 tests passed (1 total in 1 test suite, run time 1.298s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment