Skip to content

Channel closed error when running tests with Node 9.0.0-pre #4731

@fhinkel

Description

@fhinkel

I'm making some changes to the Node vm-module and wanted to make sure they don't break Jest.
I'm having trouble running yarn jest with current Node master 1fd662c0e3 (even without my patch with breaking changes). We're cutting Node 9 this Sunday. Would anybody want to look into these problems or do you skip odd Node version numbers anyways?

See nodejs/node#16293

yarn jest 
....
 RUNS  integration_tests/__tests__/auto_clear_mocks.test.js

Test Suites: 0 of 178 total
Tests:       0 total
Snapshots:   0 total
Time:        0s, estimated 17s
████████████████████████████████████████events.js:195
      throw er; // Unhandled 'error' event
      ^

Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at ChildProcess.target.send (internal/child_process.js:606:16)
 at Object.send (/usr/local/google/home/franzih/code/jest/node_modules/worker-farm/lib/fork.js:24:17)
    at Farm.stopChild (/usr/local/google/home/franzih/code/jest/node_modules/worker-farm/lib/farm.js:131:11)
    at Farm.<anonymous> (/usr/local/google/home/franzih/code/jest/node_modules/worker-farm/lib/farm.js:96:10)
    at ontimeout (timers.js:478:11)
    at tryOnTimeout (timers.js:302:5)
    at Timer.listOnTimeout (timers.js:262:5)
error Command failed with exit code 1.
jest (master)$ yarn versions
yarn versions v1.2.1
warning You are using Node "9.0.0-pre" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || ^8.0.0"
{ http_parser: '2.7.0',
  node: '9.0.0-pre',
  v8: '6.2.414.32-node.3',
  uv: '1.15.0',
  zlib: '1.2.11',
  ares: '1.13.0',
  modules: '59',
  nghttp2: '1.25.0',
  openssl: '1.0.2l',
  icu: '59.1',
  unicode: '9.0',
  cldr: '31.0.1',
  tz: '2017b' }
Done in 0.06s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions