mirror of
https://github.com/vee1e/bulk-questionnaire-upload.git
synced 2026-09-01 09:50:06 +00:00
- Introduced a CI workflow for automated testing of backend and frontend components. - Added pytest configuration for backend tests and Vitest configuration for frontend tests. - Enhanced file validation logic in the backend to improve error handling and reporting. - Created comprehensive test cases for various validation scenarios, including edge cases and incorrect formats. - Updated requirements to include necessary testing libraries and tools.
21 lines
473 B
TypeScript
21 lines
473 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import { fileURLToPath } from 'node:url'
|
|
import { dirname, resolve } from 'node:path'
|
|
|
|
const __filename = fileURLToPath(import.meta.url)
|
|
const __dirname = dirname(__filename)
|
|
const repoRoot = resolve(__dirname, '..')
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
fs: {
|
|
allow: ['..']
|
|
}
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
include: [resolve(repoRoot, 'tests/frontend/**/*.spec.ts')],
|
|
globals: true
|
|
}
|
|
})
|
|
|