test(frontend) : RBAC #345 - vitest setup + usePermissions unit tests

This commit is contained in:
Matthieu
2026-04-15 17:15:27 +02:00
parent 91b2ae0c65
commit 6cc576f000
4 changed files with 2406 additions and 184 deletions

15
frontend/vitest.config.ts Normal file
View File

@@ -0,0 +1,15 @@
import { defineConfig } from 'vitest/config'
import { fileURLToPath } from 'node:url'
export default defineConfig({
test: {
environment: 'happy-dom',
globals: true,
},
resolve: {
alias: {
'~': fileURLToPath(new URL('./', import.meta.url)),
'@': fileURLToPath(new URL('./', import.meta.url)),
},
},
})