Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

test: clean Star History fixture when shell discovery fails

tt-a1i6a8a0d956f42
diff --git a/test/readme-showcase.test.mjs b/test/readme-showcase.test.mjs
index e67fa06e..55c490ca 100644
--- a/test/readme-showcase.test.mjs
+++ b/test/readme-showcase.test.mjs
@@ -394,9 +394,9 @@ test('Star History publishing advances the data branch without a force push', ()
const firstCheckout = path.join(fixture, 'first');
const secondCheckout = path.join(fixture, 'second');
const publisher = path.join(repoRoot, 'scripts', 'publish-star-history.sh');
- const shell = shellForFixture();
try {
+ const shell = shellForFixture();
git(fixture, ['init', '--bare', remote]);
git(fixture, ['--git-dir', remote, 'config', 'receive.denyNonFastForwards', 'true']);
git(fixture, ['--git-dir', remote, 'config', 'receive.denyDeletes', 'true']);