Refactor test database setup and add migrations

- Updated test files to use a separate test database configuration.
- Introduced a new helper module for managing test database operations.
- Added a setup file to configure the environment for tests.
- Created new database migration scripts to optimize message indexing.
- Added a sample environment file for test database configuration.
This commit is contained in:
MythEclipse
2026-05-31 16:32:38 +07:00
parent 8a712cff9b
commit f224be2a66
16 changed files with 1639 additions and 70 deletions
+1
View File
@@ -8,5 +8,6 @@ export default defineConfig({
environment: "node",
fileParallelism: false,
include: ["tests/**/*.test.ts"],
setupFiles: ["tests/setup.ts"],
},
});