jestjs/jest

[Bug]: workerThreads break --watch-all when function does not meet expected.

Open

#14,423 创建于 2023年8月17日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)TypeScript (45,361 star) (6,653 fork)batch import
:bug: BugHelp WantedPinned

描述

Version

29.6.2

Steps to reproduce

  1. Clone my repo at: https://github.com/roffelund/jest-function-expect-bug
  2. yarn
  3. yarn test test.test.js --watch-all

Expected behavior

Screenshot 2023-08-17 at 10 36 09

I expected the test to show that the expected and received do not match.

Actual behavior

Screenshot 2023-08-17 at 10 35 19

Test stops running with exception

Additional context

This only happens when running with workers. Turning off workers expected behaviour works fine.

Environment

System:
    OS: macOS 13.4
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 18.17.0 - /opt/homebrew/opt/node@18/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.6.7 - /opt/homebrew/opt/node@18/bin/npm
  npmPackages:
    jest: 29.6.2 => 29.6.2

贡献者指南