Error: No test suite found

See original GitHub issue

Describe 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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
Rajivhostcommented, Dec 12, 2022

Hi all,

I’m currently experiencing this issue:

image

3reactions
agualiscommented, Feb 25, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found