Added basic tests for testing a real websocket

This commit is contained in:
Niklas Jensen
2025-12-30 19:33:30 +01:00
committed by nikguin04
parent c4d3c8966c
commit 8098dcec9b
5 changed files with 169 additions and 15 deletions
+11 -5
View File
@@ -1,11 +1,17 @@
import { defineConfig, UserConfigExport } from 'vitest/config'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import path from 'path'
const config: UserConfigExport = {
plugins: [svelte()],
test: {
globals: true,
environment: 'jsdom'
}
plugins: [svelte()],
resolve: {
alias: {
$lib: path.resolve(__dirname, './src/lib')
}
},
test: {
globals: true,
environment: 'jsdom'
}
}
export default defineConfig(config)