mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-21 06:24:32 +00:00
fix(test): kilo-code tests fail on machines with KiloCode installed
Some checks are pending
CI / semgrep (push) Waiting to run
Some checks are pending
CI / semgrep (push) Waiting to run
discoverSessions always checks the SQLite path at ~/.local/share/kilo regardless of overrideDir, so the test found real sessions on the host. Filter to override-dir sessions and avoid hardcoded /tmp paths.
This commit is contained in:
parent
bec0491667
commit
f748d3463b
1 changed files with 6 additions and 6 deletions
|
|
@ -26,9 +26,10 @@ describe('kilo-code provider - discovery path differentiation', () => {
|
|||
|
||||
const provider = createKiloCodeProvider(tmpDir)
|
||||
const sessions = await provider.discoverSessions()
|
||||
const fromOverride = sessions.filter(s => s.path.startsWith(tmpDir))
|
||||
|
||||
expect(sessions).toHaveLength(1)
|
||||
expect(sessions[0]!.provider).toBe('kilo-code')
|
||||
expect(fromOverride).toHaveLength(1)
|
||||
expect(fromOverride[0]!.provider).toBe('kilo-code')
|
||||
})
|
||||
|
||||
it('parses with kilo-code provider name in dedup key', async () => {
|
||||
|
|
@ -54,9 +55,8 @@ describe('kilo-code provider - metadata', () => {
|
|||
expect(kiloCode.displayName).toBe('KiloCode')
|
||||
})
|
||||
|
||||
it('uses different extension ID than roo-code', async () => {
|
||||
const kiloProvider = createKiloCodeProvider('/tmp/kilo-test')
|
||||
const sessions = await kiloProvider.discoverSessions()
|
||||
expect(sessions).toHaveLength(0)
|
||||
it('uses different extension ID than roo-code', () => {
|
||||
expect(kiloCode.name).toBe('kilo-code')
|
||||
expect(kiloCode.name).not.toBe('roo-code')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue