9c4c8f04f4
For now I'm following the Atomic Design philosophy with respect to organising the components. I started with Avatar which wraps the SvelteKit library with some defaults. I test it using vitest which is now configured accordingly. All dependencies were updated to their latest version. Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
17 lines
329 B
TypeScript
17 lines
329 B
TypeScript
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte({ hot: !process.env.VITEST })],
|
|
test: {
|
|
|
|
coverage: {
|
|
include: [
|
|
'src/**/*.svelte'
|
|
]
|
|
},
|
|
include: ['tests/**/*.test.ts'],
|
|
environment: 'jsdom',
|
|
globals: true
|
|
}
|
|
});
|