From e956fb60adb875571a0bff2d5f3ccebbfe734fd7 Mon Sep 17 00:00:00 2001 From: Jixun Wu Date: Sun, 11 Jun 2023 22:42:19 +0100 Subject: [PATCH] fix: added workaround for sql.js during vitest --- vitest.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index 043a3cf..e7e0842 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -12,6 +12,10 @@ export default defineConfig({ replacement: 'src/$1', }, ], + // workaround: sql.js is not ESModule friendly, yet... + deps: { + inline: ['sql.js'], + }, api: { port: 5174, // vite port + 1 },