Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Scripts with syntax errors are ignored by --onlyFailures #15382

Open
geoffswift opened this issue Nov 16, 2024 · 0 comments
Open

[Bug]: Scripts with syntax errors are ignored by --onlyFailures #15382

geoffswift opened this issue Nov 16, 2024 · 0 comments

Comments

@geoffswift
Copy link

Version

29.7.0

Steps to reproduce

  • Have a test script with a syntax error in it
  • Execute your tests and observe a test is reported as having failed
  • Execute the tests again with jest -f, and observe the output is
No failed test found.

Expected behavior

I would expect to be able to fix my script and rerun it with jest -f

Actual behavior

Executing jest -f yields

No failed test found.

Additional context

No response

Environment

System:
    OS: macOS 15.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 20.12.0 - ~/.nvm/versions/node/v20.12.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.9.0 - ~/.nvm/versions/node/v20.12.0/bin/npm
    pnpm: 8.5.1 - /opt/homebrew/bin/pnpm
@geoffswift geoffswift changed the title [Bug]: [Bug]: Scripts with syntax errors are ignored by --onlyFailures Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant