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]: Watch mode throws error. #14172

Closed
psznm opened this issue May 30, 2023 · 6 comments
Closed

[Bug]: Watch mode throws error. #14172

psznm opened this issue May 30, 2023 · 6 comments

Comments

@psznm
Copy link

psznm commented May 30, 2023

Version

29.5.0

Steps to reproduce

  1. npm init (all defaults)
  2. npm i jest@29.5.0
  3. ./node_modules/jest/bin/jest.js --watch

Expected behavior

Should start watch mode with "No tests found"

Actual behavior

Determining test suites to run...

  ● Test suite failed to run

thrown: [Error]

Additional context

The very same happens when running ./node_modules/jest/bin/jest.js --onlyChanged

When I add current directory ".", ./node_modules/jest/bin/jest.js . --onlyChanged seems to work, but ./node_modules/jest/bin/jest.js . --watch starts the watch mode correctly but then after few seconds gives me the very same error.

This issue is not present in jest 28, where it tells me it needs git repository and with initialized git repository it works. Initialized git repository seems to make no difference with 29. Presence/absence of test suites also seems to make no difference.

Environment

System:
    OS: Linux 5.4 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
  Binaries:
    Node: 18.16.0 - /usr/bin/node
    npm: 9.5.1 - /usr/bin/npm
  npmPackages:
    jest: ^29.5.0 => 29.5.0
@mrazauskas
Copy link
Contributor

Could it be that you are hitting #14046?

@psznm
Copy link
Author

psznm commented May 30, 2023

Yes, that's it! I removed sl package and watch mode now works.

@github-actions
Copy link

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 github-actions bot added the Stale label Jun 29, 2023
@github-actions
Copy link

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 github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 29, 2023
@ej-shafran
Copy link

Wow, I'm so lucky I ran across this! I installed sl as a joke a few months ago and have been pulling my hair out at jest not working for forever

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants