Browse Source

test(persistence): budget heavy integration cases for CI

turtle1999 1 month ago
parent
commit
0b368dfe78
2 changed files with 4 additions and 2 deletions
  1. 2 1
      scripts/persistence-changes.spec.ts
  2. 2 1
      scripts/persistence-schema.spec.ts

+ 2 - 1
scripts/persistence-changes.spec.ts

@@ -472,7 +472,8 @@ describe('persistence changes current-tree commands', () => {
     }
   })
 
-  it('executes the real CLI against a source-only temporary checkout without Git history', () => {
+  // Six real CLI processes and TypeScript extraction share the Windows coverage test budget.
+  it('executes the real CLI against a source-only temporary checkout without Git history', { timeout: 90_000 }, () => {
     const root = fixture()
     const physical = join(root, 'packages/session/session-persistence-jsonl/src')
     mkdirSync(physical, { recursive: true })

+ 2 - 1
scripts/persistence-schema.spec.ts

@@ -305,7 +305,8 @@ interface SessionEventMap {
     expect(() => extractPersistenceSchema(fixture(source))).toThrow(error)
   })
 
-  it('includes every real repository event and fingerprints every reachable node', () => {
+  // Repository-wide TypeScript extraction and reachable-node hashing use the Windows coverage test budget.
+  it('includes every real repository event and fingerprints every reachable node', { timeout: 90_000 }, () => {
     const root = resolve(import.meta.dirname, '..')
     const model = extractPersistenceSchema(root)
     expect(model.roots.filter(root => root.kind === 'event').map(root => root.event).sort())