Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: use a portable literal pathspec fixture

[._.]/ Adam Eivy1125cc46cc6b
diff --git a/server/services/heldCheckoutRecovery.test.js b/server/services/heldCheckoutRecovery.test.js
index b74dc259f3..881ffab312 100644
--- a/server/services/heldCheckoutRecovery.test.js
+++ b/server/services/heldCheckoutRecovery.test.js
@@ -278,12 +278,17 @@ describe.skipIf(SKIP_HEAVY_INTEGRATION)('held checkout recovery (real git)', ()
expect(prepared.review.comparison.difference).toContain('+strengthened replacement');
});
- it('compares pathspec-magic filenames literally', async () => {
- const c = await reviewedCheckout('literal', { featurePath: ':(exclude)*', superseded: true });
+ it('compares pathspec glob filenames literally', async () => {
+ const c = await reviewedCheckout('literal', { featurePath: '[literal].txt', superseded: true });
+ await writeFile(join(repo, 'l.txt'), 'unrelated glob match\n');
+ await execGit(['add', 'l.txt'], repo);
+ await execGit(['commit', '-m', 'unrelated default change'], repo);
+ c.forge.defaultHead = (await execGit(['rev-parse', 'HEAD'], repo)).stdout.trim();
const prepared = await c.prepare();
expect(prepared.ok).toBe(true);
expect(prepared.review.comparison.disposition).toBe('review-supersession');
expect(prepared.review.comparison.difference).toContain('+strengthened replacement');
+ expect(prepared.review.comparison.difference).not.toContain('unrelated glob match');
});
it('retains all original changes in a multi-commit squash review', async () => {