mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-13 17:08:29 +00:00
14 lines
552 B
TypeScript
14 lines
552 B
TypeScript
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"))
|
|
})
|
|
})
|