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

Function makeState

test/tdd_state.test.js:13–16  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

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

Callers 1

tdd_state.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected