| 0c26846a Andy McCall ↶ |
1 |
import { test } from "node:test"; |
| 2 |
import assert from "node:assert/strict"; |
| 3 |
import { isInStore } from "../out/paths.mjs"; |
| 4 |
|
| 5 |
test("every .oxy store is left out, a subrepo's too", () => { |
| 6 |
assert.equal(isInStore(".oxy/workspaces/a/manifest"), true); |
| 7 |
assert.equal(isInStore("rstar-api/.oxy/workspaces/b/manifest"), true, "a subrepo's store"); |
| 8 |
assert.equal(isInStore("libs\\sub\\.oxy\\ops\\head"), true, "Windows separators"); |
| 9 |
assert.equal(isInStore("src/main.c"), false); |
| 10 |
assert.equal(isInStore("docs/.oxy-notes.md"), false, "only a whole .oxy component"); |
| 11 |
assert.equal(isInStore("a.oxy-conflict-1"), false); |
| 12 |
}); |