feat: added integration tests

This commit is contained in:
Xiaohan-Tian
2025-12-08 17:56:58 -08:00
parent c5ada0db63
commit 02a7a61b1d
8 changed files with 1036 additions and 10 deletions
+4 -4
View File
@@ -11,9 +11,10 @@ export default defineConfig({
// Global test setup
setupFiles: ['./src/test/setup.ts'],
// Include unit test files co-located with source
// Include unit test files co-located with source AND integration tests
include: [
'src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'
'src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
'src/test/integration/**/*.integration.test.ts'
],
// Exclude directories
@@ -21,8 +22,7 @@ export default defineConfig({
'node_modules',
'dist',
'.git',
'.cache',
'tests/' // Exclude integration/e2e folder for now
'.cache'
],
// Enable global test functions (describe, it, expect)