-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Error: Attempted to send a message to the worker before the response from the last message was received! Worker processes can only handle one message at a time. #369
Comments
This also worked for me to
|
No, |
@binarykitchen package.json
|
Huh? @whroman do you mean, you removed a |
In my case, I call jest within a gulp task and have this var coffee = require('coffee-script'),
transform = require('coffee-react-transform')
module.exports = {
process: function(src, path) {
if (coffee.helpers.isCoffee(path) || (path.match(/\.cjsx/))) {
return coffee.compile(transform(src), {'bare': true})
} else
return src
}
} There is no console.log and everything looks right. But why do jest tests still do not work? (they work with older node.js or io.js versions but not with newer ones) |
@binarykitchen
I had thrown a If it helps, I wrote my own Gulp task for running the Jest test runner, so maybe you can adapt it to your situation to see if doesn't raise your error. Gulpfile.coffee
Edit: It may be worth noting that this project does not use JSX. |
I think we aren't on the same page here. The error I reported has nothing to do with your custom preprocessor and looks more likely a bug within jest. This is my gulp script gulp.task('test:jest', ->
# Workaround until https://github.com/facebook/jest/issues/270 is solved
process.env.NODE_PATH = __dirname + '/' + paths.frontend
gulp.src("#{paths.frontend}")
.pipe(plugins.jest(
testDirectoryName: "__jest__"
testFileExtensions: ['cjsx']
moduleFileExtensions: [
"js"
"json"
"coffee"
"cjsx"
]
))
) You see, it has no pre-processor and it still happens:
|
Repeating: my gulp task worked until I switched to iojs |
See #340 |
Just want to note that switching from gulp-jest to your forked gulp-jest-iojs version @binarykitchen solved this problem for me. Thank you. |
Should be fixed via #540 (will go out with version 0.6). Please reopen if that's not the case. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Unable to run jest tests here. Getting the above error and here is the stack trace:
The text was updated successfully, but these errors were encountered: