test: harden daemon lifecycle and e2e reliability across app/cli/server
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { readFileSync } from 'node:fs'
|
||||
import { describe, expect, test } from 'vitest'
|
||||
|
||||
describe('supervisor lifecycle intents', () => {
|
||||
test('uses explicit shutdown and restart IPC intents', () => {
|
||||
const source = readFileSync(new URL('./supervisor.ts', import.meta.url), 'utf8')
|
||||
const legacyShutdownReason = ['cli', 'shutdown'].join('_')
|
||||
|
||||
expect(source).toContain('"paseo:shutdown"')
|
||||
expect(source).toContain('"paseo:restart"')
|
||||
expect(source).not.toContain(legacyShutdownReason)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user