130f4ac080
- #3124: Session tools now merge SDK and file-backed sessions for SQLite backend - #3125: Cache priming fixed for OpenCode >=1.3.14 empty workspace - #3127: Activity-based progress detection prevents infinite compaction on Kimi/Minimax All 29 new tests pass, 4885 total tests passing.
15 lines
607 B
TypeScript
15 lines
607 B
TypeScript
import { describe, expect, it } from "bun:test"
|
|
import { join } from "node:path"
|
|
import { getOpenCodeCacheDir } from "../../shared/data-path"
|
|
|
|
describe("auto-update-checker constants", () => {
|
|
it("uses the OpenCode cache directory for installed package metadata", async () => {
|
|
const { CACHE_DIR, INSTALLED_PACKAGE_JSON, PACKAGE_NAME } = await import(`./constants?test=${Date.now()}`)
|
|
|
|
expect(CACHE_DIR).toBe(join(getOpenCodeCacheDir(), "packages"))
|
|
expect(INSTALLED_PACKAGE_JSON).toBe(
|
|
join(getOpenCodeCacheDir(), "packages", "node_modules", PACKAGE_NAME, "package.json")
|
|
)
|
|
})
|
|
})
|