Skip to content

Failed test diffs are not coloured when multiple test suites are run in parallel on Node 6 #5817

@gsteacy

Description

@gsteacy

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Repro here: https://github.com/gsteacy/jest-bug-repro. Running npm test -- --no-cache is sufficient.

When Jest is running multiple test suites in parallel it does not show colours in the diffs for failed tests. Running the test again with npm test -- --no-cache -i so that they run serially will show the colours. Also, running the same tests on Node 8 works as expected.

no-colour

What is the expected behavior?

Diff is coloured

with-colour

Please provide your exact Jest configuration

Defaults

Run npx envinfo --preset jest in your project directory and paste the
results here

  System:
    OS: Windows 8.1
    CPU: x64 Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
  Binaries:
    Node: 6.13.1
    Yarn: 1.3.2
    npm: 3.10.10
  npmPackages:
    jest:
      wanted: ^22.4.2
      installed: 22.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions