fix: improve test coverage accuracy and fix session timestamp bug

- Exclude seed files from coverage (not business logic)
- Fix Date.now() double call bug in createSession functions
- Coverage improved: 53.13% → 54.18%
- All 122 test suites passing
This commit is contained in:
张翔
2026-04-09 18:06:02 +08:00
parent 042f66499a
commit 9c6a905788
2 changed files with 7 additions and 4 deletions
+1
View File
@@ -8,6 +8,7 @@ module.exports = {
'!src/**/*.d.ts',
'!src/**/*.stories.{ts,tsx}',
'!src/**/__tests__/**',
'!src/db/seed*.ts',
],
coverageThreshold: {
global: {