feat: update Linear issue tracking with project query and workflow state handling

This commit is contained in:
Do Siki
2025-09-05 03:44:04 +02:00
parent b6365543ef
commit 578a85ec1a
8 changed files with 501 additions and 247 deletions
+5 -4
View File
@@ -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
})
})