Skip to content

Vitest failed to find the current suite. #2579

Open
@dvnrsn

Description

What is the location of your example repository?

Use getting started defaults

Which package or tool is having this issue?

Oxygen

What version of that package or tool are you using?

"@shopify/mini-oxygen": "^3.0.5",

What version of Remix are you using?

"@remix-run/react": "^2.10.1",

Steps to Reproduce

In adding Vitest to quickstart project, I experience

Error: Vitest failed to find the current suite. This is a bug in Vitest. Please, open an issue with reproduction.

I've isolated this to the mini-oxygen plugin as when I comment it out, vitetest works as desired

// vite.config.js

import {oxygen} from '@shopify/mini-oxygen/vite';
import {vitePlugin as remix} from '@remix-run/dev';
import tsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig({
  plugins: [
    hydrogen(),
    // oxygen(),
    remix({
      presets: [hydrogen.preset()],
      future: {
        v3_fetcherPersist: true,
        v3_relativeSplatPath: true,
        v3_throwAbortReason: true,
      },
    }),

Expected Behavior

Vitest should run successfully

Actual Behavior

Vitest breaks with error

Image

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingSEV-4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions