jestjs / jest

Delightful JavaScript Testing.
https://jestjs.io
MIT License
44.31k stars 6.47k forks source link

[Bug]: Tests don't run using `--changedSince` flag if an imported file was deleted #15309

Closed Llois41 closed 1 week ago

Llois41 commented 2 months ago

Version

29.7.0

Steps to reproduce

https://github.com/Llois41/jest-changed-since-repro/tree/main

follow the readme in this reproduction repository

Expected behavior

I expect to see all tests run which are importing the file (and then throw an error because the file could not be resolved)

Actual behavior

Jest does not run any file which import now deleted file.

This issue was already mentioned 6 years ago in https://github.com/jestjs/jest/issues/7436 but unfortunately never resolved.

Additional context

No response

Environment

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 20.17.0 - /opt/homebrew/opt/node@20/bin/node
    Yarn: 4.3.0 - /opt/homebrew/bin/yarn
    npm: 10.8.2 - /opt/homebrew/opt/node@20/bin/npm
github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 1 week ago

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

github-actions[bot] commented 1 week ago

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.