Skip to content

[Bug]: don't use workers in watch mode if --runInBand is specified #14530

@cdoublev

Description

@cdoublev

Version

29.7.0

Steps to reproduce

  1. Clone https://github.com/cdoublev/jest-issue
  2. Run node --inspect-brk=0.0.0.0:9222 ./node_modules/.bin/jest --watchAll --runInBand (or npm test)
  3. Open chrome://inspect/ in Chrome
  4. Click inspect in the target list

Expected behavior

I expect the code to break at the debugger line in ./add.js.

Actual behavior

The code did not break.

Additional context

Follow-up on #14085 (comment).

Environment

System:
  OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
  CPU: (1) x64 Intel(R) Core(TM) i7-3612QM CPU @ 2.10GHz
Binaries:
  Node: 20.5.1 - /usr/bin/node
  npm: 9.8.0 - /usr/bin/npm
npmPackages:
  jest: ^29.7.0 => 29.7.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions