fix(tui): stabilize reload connection state
This commit is contained in:
parent
24ab17e718
commit
8dd993d25a
16 changed files with 224 additions and 19 deletions
14
packages/core/test/logging.test.ts
Normal file
14
packages/core/test/logging.test.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { describe, expect, test } from "bun:test"
|
||||
import path from "path"
|
||||
import { Global } from "@opencode-ai/core/global"
|
||||
import { Logging } from "@opencode-ai/core/observability/logging"
|
||||
|
||||
describe("Logging", () => {
|
||||
test("uses a local-specific log file for local installs", () => {
|
||||
expect(Logging.file(true, "local")).toBe(path.join(Global.Path.log, "opencode-local.log"))
|
||||
})
|
||||
|
||||
test("keeps non-local installs on the default log file", () => {
|
||||
expect(Logging.file(false, "next")).toBe(path.join(Global.Path.log, "opencode.log"))
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue