import { URL, fileURLToPath } from 'node:url';
import { defineConfig } from 'vitest/config';
export default defineConfig({
resolve: {
alias: {
'~': fileURLToPath(new URL('./src', import.meta.url)),
},
// Force solid-js to resolve to its client (reactive) build. The node
// entry in solid-js' package.json points to the SSR build where
// createEffect is a no-op, which makes reactive behaviour untestable.
conditions: ['development', 'browser'],
},
test: {
environment: 'node',
include: ['tests/**/*.test.ts'],
server: {
deps: {
inline: [/solid-js/],
},
},
},
});