From 955474968f13af98fbbafc13fced497a05f661b8 Mon Sep 17 00:00:00 2001 From: Doug Richar Date: Thu, 5 Dec 2024 02:58:06 -0500 Subject: [PATCH] fix(solid): configure Vite for client-side testing - Disable SSR in `vite-plugin-solid` to ensure client-side environment - Add development and browser conditions to resolve config for proper test environment --- packages/use-wallet-solid/vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/use-wallet-solid/vite.config.ts b/packages/use-wallet-solid/vite.config.ts index 649fcc52..35f0bbb5 100644 --- a/packages/use-wallet-solid/vite.config.ts +++ b/packages/use-wallet-solid/vite.config.ts @@ -2,7 +2,7 @@ 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', @@ -10,5 +10,8 @@ export default defineConfig({ environment: 'jsdom', setupFiles: ['./vitest.setup.ts'], globals: true + }, + resolve: { + conditions: ['development', 'browser'] } })