Buckets:
| import { describe, expect, test } from "bun:test" | |
| import { directoryPickerKind } from "./directory-picker-policy" | |
| const local = { | |
| type: "sidecar", | |
| variant: "base", | |
| http: { url: "http://localhost:4096" }, | |
| } as const | |
| const remote = { | |
| type: "ssh", | |
| host: "example.test", | |
| http: { url: "http://localhost:4096" }, | |
| } as const | |
| describe("directoryPickerKind", () => { | |
| test("uses the native picker only for local desktop projects", () => { | |
| expect(directoryPickerKind("desktop", local)).toBe("native") | |
| expect(directoryPickerKind("desktop", remote)).toBe("server") | |
| expect(directoryPickerKind("web", local)).toBe("server") | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 645 Bytes
- Xet hash:
- dde50bc24f2e7052c500557a383926de6946cf1ab2d60784ad18a95a73c7e558
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.