Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test(api): use canonical settings fixture paths [O5,O6]

Corey Olsond347fc740c1d
diff --git a/test/settings-api-fixture.js b/test/settings-api-fixture.js
index 8ef77411..3f9c9916 100644
--- a/test/settings-api-fixture.js
+++ b/test/settings-api-fixture.js
@@ -2,7 +2,15 @@
import assert from 'node:assert/strict';
import { createServer } from 'node:http';
import { createHash } from 'node:crypto';
-import { mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs';
+import {
+ mkdirSync,
+ mkdtempSync,
+ readFileSync,
+ readdirSync,
+ realpathSync,
+ rmSync,
+ writeFileSync,
+} from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { DatabaseSync } from 'node:sqlite';
@@ -23,7 +31,7 @@ function snapshot(root) {
/** Exercise the real authenticated local endpoint without accessing the person's storage. */
export async function proveSettingsApi() {
- const root = mkdtempSync(join(tmpdir(), 'pullboard-settings-api-'));
+ const root = realpathSync(mkdtempSync(join(tmpdir(), 'pullboard-settings-api-')));
const home = join(root, 'home');
const repo = join(root, 'repo');
const previous = Object.fromEntries(['PULLBOARD_HOME', 'PULLBOARD_MACHINE_HOME', 'PULLBOARD_RELAY_KEY', 'PULLBOARD_RELAY_TOKEN', 'PULLBOARD_VIEW_PORT'].map(key => [key, process.env[key]]));