From 8a99e698f4c759b9aa01714951b5467cb607b29b Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Wed, 30 Jul 2025 02:04:49 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20test=20environment=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vitest.config.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 vitest.config.ts diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..a2705ef --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,18 @@ +// vitest.config.ts +import { fileURLToPath, URL } from 'node:url'; +import { defineConfig } from 'vitest/config'; +import path from 'path'; + +export default defineConfig({ + resolve: { + alias: { + '@': fileURLToPath(new URL('./src', import.meta.url)), + '@visua': path.resolve(__dirname, './node_modules/@cellule-financiere-pmo/visua/output'), + }, + }, + test: { + globals: true, + environment: 'jsdom', + include: ['test/**/*.spec.ts'], + }, +});