Closed moroshko closed 7 years ago
I think this is a gulp issue, see if https://github.com/gulpjs/gulp/issues/66 helps you
I don't think this is a Gulp problem. Imho it's either gulp-jest
or jest
itself. Look at this:
(I didn't change anything in the editor between these commands, so it looks like a really weird bug that happens only when there is just one test file.)
P.S. Here's the relevant part from my gulpfile - nothing special here.
gulp.task('jest', function () {
return gulp.src('__tests__').pipe($.jest());
});
Works great, thanks! But it would be nice to find the original cause of this, anyway :)
Indeed - I'm not convinced that the issue is in gulp-jest
.
Do you mind if I close this? @mik01aj @moroshko
Yes. I suppose it's a bug in jest-cli
and I will report it there.
I've shipped an update that includes the latest jest-cli
which should resolve this for you. Let me know how you get on!
Still having the same issue, even with your latest version:
Error: Please run node with the --harmony flag! jest requires WeakMap which is only available with the --harmony flag in node < v0.12
I'm seeing this error too. tried adding this to my gulpfile require('harmonize')();
This works fine with my "grunt jest"
+1, please add to official docs/npm page
+1 for require('harmonize')()
. not a blocker at all with it, but until they update the npm package with their latest patch, you'll lose your stdout colors =/
+1 for require('harmonize')()
Since nothing happened, I took the liberty to fork it and make it compatible for the latest iojs: https://www.npmjs.com/package/gulp-jest-iojs
Is this still an issue? I'm planning to maintain this library now. let me know if the latest version presents any issues.
Closing this issue as there is no activity on it.
I get the following error when running
gulp test
:Here is my gulp task:
To reproduce: https://github.com/SEEK-Jobs/react-playground
Note that
npm test
works properly (test is failing as expected), butgulp test
fails with the error above. Bothnpm test
andgulp test
have the same config object:What am I doing wrong?