Skip to content

Commit da2c6bc

Browse files
committed
Fix some tests
1 parent 61f029d commit da2c6bc

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

agents/__tests__/commander.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ describe('commander agent', () => {
2626
expect(commander.displayName).toBe('Commander')
2727
})
2828

29-
test('uses haiku model', () => {
30-
expect(commander.model).toBe('anthropic/claude-haiku-4.5')
29+
test('uses flash-lite model', () => {
30+
expect(commander.model).toBe('google/gemini-3.1-flash-lite-preview')
3131
})
3232

3333
test('has output mode set to last_message', () => {

cli/src/__tests__/e2e-cli.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function runCLI(
3737
reject(new Error('Process timeout'))
3838
}, TIMEOUT_MS)
3939

40-
proc.on('exit', (code) => {
40+
proc.on('close', (code) => {
4141
clearTimeout(timeout)
4242
resolve({ stdout, stderr, exitCode: code })
4343
})

web/jest.config.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const config = {
2626
'<rootDir>/src/app/api/agents/publish/__tests__',
2727
'<rootDir>/src/app/api/healthz/__tests__',
2828
'<rootDir>/src/app/api/stripe/webhook/__tests__',
29-
'<rootDir>/src/app/api/orgs/.*/billing/__tests__',
29+
'<rootDir>/src/app/api/orgs/.*/billing/.*__tests__',
30+
'<rootDir>/src/app/api/user/billing-portal/__tests__',
31+
'<rootDir>/src/app/api/auth/cli/logout/__tests__/logout.test.ts',
3032
],
3133
}
3234

0 commit comments

Comments
 (0)