Open hex13 opened 8 years ago
@hex13 Yea. I should work on that area. It was working fine in version 1. I didn't write nor update the test cases. I'll spend time to fix and update here :smile:
So on your installation you can't also running tests?
Because I wanted to add a feature. I made a preview feature for React elements: https://github.com/princejwesley/Mancy/pull/117 (no tests for now).
@hex13 Yea. No issues.
@princejwesley you should consider using Snapshot testing available on jest 14 - https://facebook.github.io/jest/blog/2016/07/27/jest-14.html
it makes testing very simple
Hello, I cloned repo, run
npm install
andnpm run package
, the I runnpm test
and what happened:(and it's hanging on "running 1 test")
OS X 10.9.5 Used node version v4.4.0 (npm v2.14.20) but I tried some other versions too.
I suppose that problem could be related with: https://github.com/facebook/jest/issues/554 (although they write about npm3 but I used npm 2.14.20, like I wrote above, and it's not working)
I tried to debug via console.log when exactly is error and I learned that for example line
let ReplPrompt = require('../ReplPrompt.js');
in specs: https://github.com/princejwesley/Mancy/blob/master/src/components/__tests__/ReplPrompt-test.js#L9 causes error: