Error: No test suite found
See original GitHub issueDescribe the bug
not sure what is happening, but if I comment the console.log() the test is fine, if that line is uncommented I get Error: No test suite found in file ...
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-7ztept?devtoolsheight=33&file=test/index.test.ts
System Info
System:
OS: macOS 12.1
CPU: (10) arm64 Apple M1 Pro
Memory: 139.27 MB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.14.0 - ~/.nvm/versions/node/v15.14.0/bin/node
Yarn: 1.22.15 - ~/.nvm/versions/node/v15.14.0/bin/yarn
npm: 7.7.6 - ~/.nvm/versions/node/v15.14.0/bin/npm
Browsers:
Chrome: 98.0.4758.109
Edge: 98.0.1108.62
Firefox: 96.0.3
Safari: 15.2
npmPackages:
@vitejs/plugin-react: ^1.2.0 => 1.2.0
vitest: ^0.5.5 => 0.5.5
Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:15 (3 by maintainers)
Top Results From Across the Web
Why I get 'No test suite found. Nothing to run' error in eclipse?
This error means that you are trying to install software in Eclipse, but for that installation to work, one or more of the...
Read more >"TestNG No tests found. Nothing was run" while executing ...
When using TestNG you don't write a main method. It is not that main method along with other tests with @test annotation will...
Read more >No Tests Were Found & Empty Test Suite - Getting Started
On some occasions, the Output window will display No tests were found and/or Empty Test Suite . This occurs whenever a test run...
Read more >TestNG- No tests found. Nothing was run - SQA Stack Exchange
This error message implies that TestNG didn't find any @Test to execute. [TestNG] No tests found. Nothing was run. Make sure you have...
Read more >[TestNG] No tests found. Nothing was run - Google Groups
The error you are seeing usually happens when TestNG cannot find test classes to execute. The root cause can be anything. So lets...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi all,
I’m currently experiencing this issue:
Can you try the same with the previous version (
"vitest": "0.5.4")?I think that the last release (
0.5.5) is shadowing real errors.