Files
frontend-svelte/vitest.config.browser.ts
T
Ilia Mashkov 1c6427c586 chore: drop vestigial $lib alias
$lib pointed at src/lib/, which does not exist, and nothing imported it.
Removed the dead alias from all five declaration sites (tsconfig plus the
vite and three vitest configs). A stray $lib import now fails fast as an
unknown alias instead of resolving to a missing path.
2026-06-02 23:17:27 +03:00

35 lines
1.0 KiB
TypeScript

import { svelte } from '@sveltejs/vite-plugin-svelte';
import { playwright } from '@vitest/browser-playwright';
import path from 'node:path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [svelte()],
optimizeDeps: {
exclude: ['@lucide/svelte'],
},
test: {
browser: {
enabled: true,
provider: playwright({}),
instances: [{ browser: 'chromium' }],
},
include: ['src/**/*.svelte.test.ts'],
setupFiles: ['./vitest.setup.component.ts'],
globals: true,
},
resolve: {
alias: {
$app: path.resolve(__dirname, './src/app'),
$shared: path.resolve(__dirname, './src/shared'),
$entities: path.resolve(__dirname, './src/entities'),
$features: path.resolve(__dirname, './src/features'),
$routes: path.resolve(__dirname, './src/routes'),
$widgets: path.resolve(__dirname, './src/widgets'),
},
},
});