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

Function makeLoop

test/tdd_harness.test.js:17–23  ·  view source on GitHub ↗
(requirements = ['req1', 'req2'])

Source from the content-addressed store, hash-verified

15// ─── Helpers ─────────────────────────────────────────────────────────────────
16
17function makeLoop(requirements = ['req1', 'req2']) {
18 const stateFile = path.join(os.tmpdir(), `tdd_harness_${Math.random().toString(36).slice(2)}.json`);
19 const state = new TDDStateMachine({ workdir: os.tmpdir(), stateFile });
20 const gov = new TDDGovernor({ state });
21 state.initRequirements(requirements);
22 return { state, gov };
23}
24
25// Simulate what _tddPostWrite does, but with injected test results
26// so we don't actually run a test suite.

Callers 1

Calls 1

initRequirementsMethod · 0.95

Tested by

no test coverage detected