Skip to content

No Test Suite Found Bug still present #2604

@Kurohyou

Description

@Kurohyou

Describe the bug

#847 is closed, but the issue (or something similar) appears to still be present in Vitest 0.26.3. Have one directory in a repo where tests run fine. Have another directory where even basic pseudo tests won't run:

import { describe, expect, it } from 'vitest';

describe('A nascent test',()=>{
  it('Really basic test',()=>{
    expect(true).toBe(true);
  })
});

The error I get is:
Error: No test suite found in file E:/Git/Kurohyou_studios/Roll20-Snippets/test_sheet/source/assets/js/__tests__/gen.test.js

The actual test I'm trying to run here was working a week ago, so not sure what has changed.

Reproduction

Repro info above.

System Info

Vitest 0.26.3
Windows 10.0.19045 Build 19045

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions