Skip to content

See how your app actually fits together. An interactive, plain-English map of your codebase, drawn by Claude or Codex.

Tests: compare real paths in the Codex ask test, so it passes on macOS

Hayden Smith242bc192e4b6
diff --git a/tests/ask.test.mjs b/tests/ask.test.mjs
index 0575bfb..dae569c 100644
--- a/tests/ask.test.mjs
+++ b/tests/ask.test.mjs
@@ -63,7 +63,8 @@ test('with only Codex installed, questions run through Codex, read-only and out
assert.equal(call.args[0], 'exec');
assert.equal(flag('--sandbox'), 'read-only');
assert.ok(call.args.includes('--ephemeral'), 'nothing is saved to the Codex history');
- assert.equal(path.resolve(flag('-C')), path.resolve(root));
+ // Node runs serve.mjs from its real path, and on macOS the temp folder /var/… is really /private/var/…
+ assert.equal(fs.realpathSync(flag('-C')), fs.realpathSync(root));
assert.match(call.input, /How do refunds work\?/);
assert.match(call.input, /node floorplan\/query\.mjs/);
});