MCPcopy
hub / github.com/garrytan/gstack / describeWithWorktree

Function describeWithWorktree

test/helpers/e2e-helpers.ts:325–336  ·  view source on GitHub ↗
(
  name: string,
  testNames: string[],
  fn: (getWorktreePath: () => string) => void,
)

Source from the content-addressed store, hash-verified

323 * Note: tests with planted-bug fixtures should NOT use this — they need their fixture repos.
324 */
325export function describeWithWorktree(
326 name: string,
327 testNames: string[],
328 fn: (getWorktreePath: () => string) => void,
329) {
330 describeIfSelected(name, testNames, () => {
331 let worktreePath: string;
332 beforeAll(() => { worktreePath = createTestWorktree(name); });
333 afterAll(() => { harvestAndCleanup(name); });
334 fn(() => worktreePath);
335 });
336}
337
338export { judgePassed } from './eval-store';
339export { EvalCollector } from './eval-store';

Callers

nothing calls this directly

Calls 4

createTestWorktreeFunction · 0.85
harvestAndCleanupFunction · 0.85
fnFunction · 0.85
describeIfSelectedFunction · 0.70

Tested by

no test coverage detected