test(web): add Vitest smoke test and jsdom config

This commit is contained in:
2026-04-22 09:30:08 -04:00
parent 86b024dc47
commit 8d88a76dbf
2 changed files with 17 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import { describe, expect, it } from 'vitest';
describe('scaffold smoke', () => {
it('runs vitest', () => {
expect(1 + 1).toBe(2);
});
});
+10
View File
@@ -0,0 +1,10 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [sveltekit()],
test: {
environment: 'jsdom',
include: ['src/**/*.test.ts']
}
});