You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
859 B
36 lines
859 B
import { defineConfig } from 'vitest/config'; |
|
import { playwright } from '@vitest/browser-playwright'; |
|
import tailwindcss from '@tailwindcss/vite'; |
|
import { sveltekit } from '@sveltejs/kit/vite'; |
|
|
|
export default defineConfig({ |
|
plugins: [tailwindcss(), sveltekit()], |
|
test: { |
|
expect: { requireAssertions: true }, |
|
projects: [ |
|
{ |
|
extends: './vite.config.ts', |
|
test: { |
|
name: 'client', |
|
browser: { |
|
enabled: true, |
|
provider: playwright(), |
|
instances: [{ browser: 'chromium', headless: true }] |
|
}, |
|
include: ['src/**/*.svelte.{test,spec}.{js,ts}'], |
|
exclude: ['src/lib/server/**'] |
|
} |
|
}, |
|
|
|
{ |
|
extends: './vite.config.ts', |
|
test: { |
|
name: 'server', |
|
environment: 'node', |
|
include: ['src/**/*.{test,spec}.{js,ts}'], |
|
exclude: ['src/**/*.svelte.{test,spec}.{js,ts}'] |
|
} |
|
} |
|
] |
|
} |
|
});
|
|
|