Curated, product-agnostic snapshot of the post-story-04 tree: demo content deleted, auth-only reference feature, web-next shell, all gates green. Product-specific docs, ADRs 027-029, PRDs/epics/archive, editor library traces, and product naming are curated out; generic template repairs (coverage provider devDeps, root test:coverage script, live lint fixes, root-only release-please) are kept. See TEMPLATE.md for provenance, curation list, and usage. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016j8z4VHjedXDTjEDNg7qHK
17 lines
687 B
JavaScript
17 lines
687 B
JavaScript
import { describe, it, expect } from "vitest";
|
|
import { execSync } from "node:child_process";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
const GUARD = path.join(__dirname, "state-sync-guard.mjs");
|
|
|
|
describe("state-sync-guard smoke", () => {
|
|
it("exits 0 when run against the repo's current state (since main is in sync)", () => {
|
|
// Run the guard; if main's _state.json drifts, this test will fail and tell us.
|
|
execSync(`node "${GUARD}"`, { encoding: "utf8" });
|
|
// No assertion on output; the exit code is 0 if we got here without throwing.
|
|
expect(true).toBe(true);
|
|
});
|
|
});
|