-
Notifications
You must be signed in to change notification settings - Fork 51
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 fails with TypeError: Unknown file extension ".jsx" #157
Comments
Im not alone, yes! Did you ever manage to fix it? |
No, I could not fix the issue, but I added a production in #158 as well. I talked to @ryansolid about this. He mentioned that @atk created the testing part of the plugin. |
It is really hard to keep up with the constant changes, so I'm sorry, but I have no fast solution. |
Does #158 help you debug the issue? |
I'm working around this with the experimental vitest feature 'browser mode' so no fast solutions needed personally :) |
I'm on MacOS and use PNPM. import { defineConfig } from "vitest/config";
export default defineConfig({
resolve: {
preserveSymlinks: true,
},
}); |
I am trying to test a component using Vitest, but following the documentation fails with this error
https://docs.solidjs.com/guides/testing#adding-testing-packages
My test file is a
tsx
file. It seems Vitest has trouble loading the.jsx
file. My config is the same as the doc.The text was updated successfully, but these errors were encountered: