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

Deleted test file gives "Module not found" error dialog on Run Tests #1247

Open
gewoonwoutje opened this issue Jan 28, 2025 · 1 comment
Open

Comments

@gewoonwoutje
Copy link

gewoonwoutje commented Jan 28, 2025

Describe the bug

When deleting a file that contains tests, the test runner is reporting a Module not found error and cancels the test run.

To Reproduce

  1. Add a test.ts file containing a simple test.
  2. Use the "Run Tests"-button in the Test Explorer view to run all tests. The new test will be run.
  3. Delete the test.ts file (or switch git branch, or do something that causes the file to be gone).
  4. Use the Run Tests again.

Expected behavior

The deleted test should be ignored and other tests should run as normal. Instead, a dialog appears that the Module is not found, and other tests seem not to run.

Screenshots

Image

Versions

vscode: 1.96.4 deno: 2.1.7 extension: 3.43.2 OS: Windows

@gewoonwoutje
Copy link
Author

The error can be solved by restarting the language server. Deleting the test from the file before deleting the file prevents the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant