test: add admin route guard coverage
app-ci-deploy / test-build-deploy (push) Has been cancelled

This commit is contained in:
2026-05-27 23:24:26 +01:00
parent e68eef8865
commit 0db53bfd9c
7 changed files with 206 additions and 37 deletions
+17
View File
@@ -0,0 +1,17 @@
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig({
plugins: [react()],
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./src/setupTests.ts'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});