MCPcopy
hub / github.com/Doorman11991/smallcode / makeGovernor

Function makeGovernor

test/tdd_governor.test.js:13–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11// ─── Helpers ─────────────────────────────────────────────────────────────────
12
13function makeGovernor() {
14 const stateFile = path.join(os.tmpdir(), `tdd_gov_${Math.random().toString(36).slice(2)}.json`);
15 const state = new TDDStateMachine({ workdir: os.tmpdir(), stateFile });
16 return { gov: new TDDGovernor({ state }), state };
17}
18
19const FAILING_RESULT = { passed: 0, failed: 1, errors: 0, skipped: 0, exitCode: 1, failures: [{ name: 'test_foo', message: 'err' }] };
20const PASSING_RESULT = { passed: 2, failed: 0, errors: 0, skipped: 0, exitCode: 0, failures: [] };

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected