Vite 5.2.x / Vitest 1.5.x: How to Resolve Multiple Instances of Solid
I am nearing my wits end trying to resolve these error messages I receive when trying to run my SolidJS tests with
@solidjs/testing-library
and vitest
I do not know what else to try and need assistance if anyone can help. I have the following vite.config.ts
In my package.json
these are the dependencies I have:
4 Replies
Ended up solving it by updating my
vite.config.ts
with the following:
Most of the test config shouldn't be necessary anymore.
GitHub
vite-plugin-solid/src/index.ts at main · solidjs/vite-plugin-solid
A simple integration to run solid-js with vite. Contribute to solidjs/vite-plugin-solid development by creating an account on GitHub.
We automatically configure everything that is required to test your solid code with vitest.
including server.deps.external.