refactor(frontend): update test config and optimize components
- Update vitest config to use new test directory structure - Optimize Dashboard, RoleManagement, UserManagement components - Improve signature utility with better error handling - Enhance component error handling and user feedback
This commit is contained in:
@@ -7,7 +7,7 @@ export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./src/test/setup.ts'],
|
||||
setupFiles: ['./src/__tests__/setup.ts'],
|
||||
pool: 'threads',
|
||||
poolOptions: {
|
||||
threads: {
|
||||
@@ -17,7 +17,7 @@ export default defineConfig({
|
||||
useAtomics: true,
|
||||
},
|
||||
},
|
||||
include: ['src/test/**/*.{test,spec}.{js,ts}'],
|
||||
include: ['src/__tests__/**/*.{test,spec}.{js,ts}'],
|
||||
exclude: [
|
||||
'node_modules/',
|
||||
'dist/',
|
||||
@@ -31,7 +31,7 @@ export default defineConfig({
|
||||
reporter: ['text', 'json', 'html', 'lcov'],
|
||||
exclude: [
|
||||
'node_modules/',
|
||||
'src/test/',
|
||||
'src/__tests__/',
|
||||
'**/*.d.ts',
|
||||
'**/*.config.*',
|
||||
'**/mockData',
|
||||
@@ -65,7 +65,7 @@ export default defineConfig({
|
||||
enabled: true,
|
||||
},
|
||||
benchmark: {
|
||||
include: ['src/test/**/*.{bench,benchmark}.{js,ts}'],
|
||||
include: ['src/__tests__/**/*.{bench,benchmark}.{js,ts}'],
|
||||
exclude: ['node_modules/', 'dist/'],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user