chore/port-solidtime-audit-fixes #1
@@ -8,9 +8,10 @@ const GUARD = path.join(__dirname, "state-sync-guard.mjs");
|
|||||||
|
|
||||||
describe("state-sync-guard smoke", () => {
|
describe("state-sync-guard smoke", () => {
|
||||||
it("exits 0 when run against the repo's current state (since main is in sync)", () => {
|
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.
|
// Run the guard; if main's _state.json drifts, execSync throws (non-zero
|
||||||
const result = execSync(`node "${GUARD}"`, { encoding: "utf8" });
|
// exit) and this test fails with the guard's output.
|
||||||
// No assertion on output; the exit code is 0 if we got here without throwing.
|
expect(() =>
|
||||||
expect(true).toBe(true);
|
execSync(`node "${GUARD}"`, { encoding: "utf8" }),
|
||||||
|
).not.toThrow();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user