I am trying to run the React Example from the Jest React tutorial but I am receiving errors
λ npm test > ... > jest Found 1 matching tests... FAIL __tests__\CheckboxWithLabel-test.js (0.551s) npm ERR! Test failed. See above for more details. npm ERR! not ok code 0 I have pretty much copied the code directly from the example. The package.json is as follows:
{ "dependencies": { "react": "*", "react-tools": "*" }, "scripts":{ "test": "jest" }, "jest": { "scriptPreprocessor": "<rootDir>/preprocessor.js", "unmockedModulePathPatterns": [ "<rootDir>/node_modules/react" ] }, "devDependencies": { "jest-cli": "~0.1.17" } } Any thoughts on what I can do to resolve these errors and run the example test successfully? It's very possible I'm missing an important detail (or details) but not entirely sure what. Oh and for what it's worth, I'm running this on Windows if that impacts this. I would really like to get some tests on my react components (was having some trouble there too so started with the basic examples) -- any help would be appreciated :)