fix(tests): update atlas hook and auto-update-checker tests
- atlas hook: update verification reminder assertions to match new 4-phase QA system (MANDATORY -> PHASE 1/2, LIE -> LYING) - auto-update-checker: add missing revertPinnedVersion mock export to fix SyntaxError in background-update-check tests Note: 4 auto-update-checker tests fail only when run alongside checker.test.ts due to bun mock.module isolation issue (pre-existing in v3.7.3, not a regression)
This commit is contained in:
parent
b0e8f5ec7b
commit
6e16087779
@ -180,8 +180,8 @@ describe("atlas hook", () => {
|
|||||||
|
|
||||||
// then - standalone verification reminder appended
|
// then - standalone verification reminder appended
|
||||||
expect(output.output).toContain("Task completed successfully")
|
expect(output.output).toContain("Task completed successfully")
|
||||||
expect(output.output).toContain("MANDATORY:")
|
expect(output.output).toContain("LYING")
|
||||||
expect(output.output).toContain("task(session_id=")
|
expect(output.output).toContain("PHASE 1")
|
||||||
|
|
||||||
cleanupMessageStorage(sessionID)
|
cleanupMessageStorage(sessionID)
|
||||||
})
|
})
|
||||||
@ -219,8 +219,8 @@ describe("atlas hook", () => {
|
|||||||
expect(output.output).toContain("Task completed successfully")
|
expect(output.output).toContain("Task completed successfully")
|
||||||
expect(output.output).toContain("SUBAGENT WORK COMPLETED")
|
expect(output.output).toContain("SUBAGENT WORK COMPLETED")
|
||||||
expect(output.output).toContain("test-plan")
|
expect(output.output).toContain("test-plan")
|
||||||
expect(output.output).toContain("LIE")
|
expect(output.output).toContain("LYING")
|
||||||
expect(output.output).toContain("task(session_id=")
|
expect(output.output).toContain("PHASE 1")
|
||||||
|
|
||||||
cleanupMessageStorage(sessionID)
|
cleanupMessageStorage(sessionID)
|
||||||
})
|
})
|
||||||
@ -401,10 +401,10 @@ describe("atlas hook", () => {
|
|||||||
output
|
output
|
||||||
)
|
)
|
||||||
|
|
||||||
// then - should include session_id instructions and verification
|
// then - should include verification instructions
|
||||||
expect(output.output).toContain("task(session_id=")
|
expect(output.output).toContain("LYING")
|
||||||
expect(output.output).toContain("[x]")
|
expect(output.output).toContain("PHASE 1")
|
||||||
expect(output.output).toContain("MANDATORY:")
|
expect(output.output).toContain("PHASE 2")
|
||||||
|
|
||||||
cleanupMessageStorage(sessionID)
|
cleanupMessageStorage(sessionID)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -16,6 +16,7 @@ mock.module("../checker", () => ({
|
|||||||
getCachedVersion: mockGetCachedVersion,
|
getCachedVersion: mockGetCachedVersion,
|
||||||
getLatestVersion: mockGetLatestVersion,
|
getLatestVersion: mockGetLatestVersion,
|
||||||
updatePinnedVersion: mockUpdatePinnedVersion,
|
updatePinnedVersion: mockUpdatePinnedVersion,
|
||||||
|
revertPinnedVersion: mock(() => false),
|
||||||
}))
|
}))
|
||||||
|
|
||||||
mock.module("../version-channel", () => ({
|
mock.module("../version-channel", () => ({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user