Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pm-stack/opencode-claimant/test/install.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,18 @@
function runInstaller(home, args) {
return spawnSync(process.execPath, [installer, ...args], {
encoding: "utf8",
env: { ...process.env, HOME: home },
env: {
...process.env,
HOME: home,
BUN_INSTALL: join(tmpdir(), "opencode-claimant-bun-install"),
},
});
}

async function expectNoWrites(stores) {
expect(await readFile(stores.defaultStore, "utf8")).toBe(stores.original);
expect(await readFile(stores.explicitStore, "utf8")).toBe(stores.original);
expect(await readdir(stores.home)).toEqual([

Check failure on line 57 in pm-stack/opencode-claimant/test/install.test.mjs

View workflow job for this annotation

GitHub Actions / aggregator + projector + dispatch + python suites + quota exporters

error: expect(received).toEqual(expected)

[ ".config", + ".bun", "explicit-store.json", ] - Expected - 0 + Received + 1 at expectNoWrites (/home/runner/work/code/code/pm-stack/opencode-claimant/test/install.test.mjs:57:38) at async <anonymous> (/home/runner/work/code/code/pm-stack/opencode-claimant/test/install.test.mjs:222:13)

Check failure on line 57 in pm-stack/opencode-claimant/test/install.test.mjs

View workflow job for this annotation

GitHub Actions / aggregator + projector + dispatch + python suites + quota exporters

error: expect(received).toEqual(expected)

[ ".config", + ".bun", "explicit-store.json", ] - Expected - 0 + Received + 1 at expectNoWrites (/home/runner/work/code/code/pm-stack/opencode-claimant/test/install.test.mjs:57:38) at async rejectsBeforeWrites (/home/runner/work/code/code/pm-stack/opencode-claimant/test/install.test.mjs:73:11) at async <anonymous> (/home/runner/work/code/code/pm-stack/opencode-claimant/test/install.test.mjs:203:11)

Check failure on line 57 in pm-stack/opencode-claimant/test/install.test.mjs

View workflow job for this annotation

GitHub Actions / aggregator + projector + dispatch + python suites + quota exporters

error: expect(received).toEqual(expected)

[ ".config", + ".bun", "explicit-store.json", ] - Expected - 0 + Received + 1 at expectNoWrites (/home/runner/work/code/code/pm-stack/opencode-claimant/test/install.test.mjs:57:38) at async rejectsBeforeWrites (/home/runner/work/code/code/pm-stack/opencode-claimant/test/install.test.mjs:73:11) at async <anonymous> (/home/runner/work/code/code/pm-stack/opencode-claimant/test/install.test.mjs:188:11)
".config", "explicit-store.json",
]);
expect(await readdir(stores.defaultDir)).toEqual([
Expand Down
Loading