We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Use getting started defaults
Oxygen
"@shopify/mini-oxygen": "^3.0.5",
"@remix-run/react": "^2.10.1",
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, }, }),
Vitest should run successfully
Vitest breaks with error
The text was updated successfully, but these errors were encountered:
Thanks for raising this @dvnrsn. I'm able to replicate.
Sorry, something went wrong.
Is there any update on this or a workaround?
It's a issue with Vitest on Remix. Currently workaround need to create a separate file to load Vitest config and omit all Remix/Vite/Oxygen plugins.
// vitest.config.ts <- new root file /// <reference types="vitest" /> /// <reference types="vite/client" /> import {defineConfig} from 'vite'; import tsconfigPaths from 'vite-tsconfig-paths'; export default defineConfig({ plugins: [tsconfigPaths()], test: { coverage: { all: true, include: ['app/**'], }, environment: 'jsdom', globals: true, include: ['./app/**/*.{test,spec}.{js,mjs,cjs,ts,jsx,tsx}'], setupFiles: ['PATH/TO/SETUP_FILES'], }, });
No branches or pull requests
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?
What version of Remix are you using?
Steps to Reproduce
In adding Vitest to quickstart project, I experience
I've isolated this to the mini-oxygen plugin as when I comment it out, vitetest works as desired
Expected Behavior
Vitest should run successfully
Actual Behavior
Vitest breaks with error
The text was updated successfully, but these errors were encountered: