GHHG10's picture
download
raw
533 Bytes
import { describe, expect, test } from "bun:test"
import fs from "fs/promises"
import os from "os"
import path from "path"
import { Global } from "@opencode-ai/core/global"
describe("global paths", () => {
test("tmp path is under the system temp directory", () => {
expect(Global.Path.tmp).toBe(path.join(os.tmpdir(), "opencode"))
expect(Global.make().tmp).toBe(Global.Path.tmp)
})
test("tmp path is created on module load", async () => {
expect((await fs.stat(Global.Path.tmp)).isDirectory()).toBe(true)
})
})

Xet Storage Details

Size:
533 Bytes
·
Xet hash:
86243c92bbd0a41446331c258b98e67665c1dbfc035f31e2967f7afbdb9b508e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.