Skip to content

Commit

Permalink
fix(solid): configure Vite for client-side testing
Browse files Browse the repository at this point in the history
- Disable SSR in `vite-plugin-solid` to ensure client-side environment
- Add development and browser conditions to resolve config for proper
test environment
  • Loading branch information
drichar committed Dec 5, 2024
1 parent a5f330d commit 9554749
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/use-wallet-solid/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import { defineConfig } from 'vitest/config'
import solid from 'vite-plugin-solid'

export default defineConfig({
plugins: [solid()],
plugins: [solid({ ssr: false })],
test: {
name: 'use-wallet-solid',
dir: './src',
watch: false,
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
globals: true
},
resolve: {
conditions: ['development', 'browser']
}
})

0 comments on commit 9554749

Please sign in to comment.