(frontend) switch to vitest and enhance testability

Migrated from jest to vitest for server/y-provider, gaining faster runs,
esm-native support and cleaner mocking.

Signed-off-by: Stephan Meijer <me@stephanmeijer.com>
This commit is contained in:
Stephan Meijer
2025-07-02 16:39:46 +02:00
parent 58bf5071c2
commit f3c9c41b86
18 changed files with 684 additions and 333 deletions

View File

@@ -0,0 +1,11 @@
import { URL, fileURLToPath } from 'url';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
});