Files
ComfyUI-Lora-Manager/vitest.config.js
Will Miao e17d6c8ebf feat(testing): enhance test configuration and add Vue component tests
- Update package.json test script to run both JS and Vue tests
- Simplify LoraCyclerLM output by removing redundant lora name fallback
- Extend Vitest config to include TypeScript test files
- Add Vue testing dependencies and setup for component testing
- Implement comprehensive test suite for BatchQueueSimulator component
- Add test setup file with global mocks for ComfyUI modules
2026-02-01 00:59:50 +08:00

20 lines
473 B
JavaScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['tests/frontend/setup.js'],
include: [
'tests/frontend/**/*.test.js',
'tests/frontend/**/*.test.ts'
],
coverage: {
enabled: process.env.VITEST_COVERAGE === 'true',
provider: 'v8',
reporter: ['text', 'lcov', 'json-summary'],
reportsDirectory: 'coverage/frontend'
}
}
});