feat: update Linear issue tracking with project query and workflow state handling
This commit is contained in:
@@ -57,8 +57,9 @@ describe('/api/health', () => {
|
||||
})
|
||||
|
||||
it('should handle errors gracefully', async () => {
|
||||
// Temporarily break process.env to simulate error
|
||||
global.process.env = undefined as any
|
||||
// Temporarily break process.uptime to simulate error
|
||||
const originalUptime = global.process.uptime
|
||||
global.process.uptime = (() => { throw new Error('Uptime error') }) as any
|
||||
|
||||
const response = await GET()
|
||||
|
||||
@@ -69,8 +70,8 @@ describe('/api/health', () => {
|
||||
expect(data).toHaveProperty('timestamp')
|
||||
expect(data).toHaveProperty('message', 'Health check failed')
|
||||
|
||||
// Restore process.env
|
||||
global.process.env = originalProcess.env
|
||||
// Restore process.uptime
|
||||
global.process.uptime = originalUptime
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user