feat: add API optimizations, cache invalidation and comprehensive test suite
- Add abort controllers and request deduplication to composables - Add entity type cache invalidation on create/update/delete flows - Add 179 new tests (utilities, services, composables, components) - Fix Vue runtime warnings in structure editors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import { resolve } from 'node:path'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
const iconStub = resolve(__dirname, 'tests/__mocks__/iconStub.ts')
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'happy-dom',
|
||||
@@ -9,9 +13,10 @@ export default defineConfig({
|
||||
include: ['tests/**/*.test.ts'],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'~': resolve(__dirname, 'app'),
|
||||
'#imports': resolve(__dirname, 'tests/__mocks__/imports.ts'),
|
||||
},
|
||||
alias: [
|
||||
{ find: /^~icons\/.*/, replacement: iconStub },
|
||||
{ find: '~', replacement: resolve(__dirname, 'app') },
|
||||
{ find: '#imports', replacement: resolve(__dirname, 'tests/__mocks__/imports.ts') },
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user