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

Vitest failed to find the current suite. #2579

Open
dvnrsn opened this issue Oct 1, 2024 · 2 comments
Open

Vitest failed to find the current suite. #2579

dvnrsn opened this issue Oct 1, 2024 · 2 comments
Labels
Bug Something isn't working SEV-4

Comments

@dvnrsn
Copy link
Contributor

dvnrsn commented Oct 1, 2024

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

@scottdixon
Copy link
Contributor

Thanks for raising this @dvnrsn. I'm able to replicate.

@scottdixon scottdixon added Bug Something isn't working SEV-4 labels Oct 1, 2024
@NicholasHazen
Copy link

Is there any update on this or a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working SEV-4
Projects
None yet
Development

No branches or pull requests

3 participants