MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / withFixture

Function withFixture

packages/cli/src/commands/init.test.ts:239–247  ·  view source on GitHub ↗
(fn: (dir: string) => void)

Source from the content-addressed store, hash-verified

237
238describe("applyResolutionPreset", () => {
239 function withFixture(fn: (dir: string) => void): void {
240 const dir = mkdtempSync(join(tmpdir(), "hf-resolution-test-"));
241 try {
242 mkdirSync(dir, { recursive: true });
243 fn(dir);
244 } finally {
245 rmSync(dir, { recursive: true, force: true });
246 }
247 }
248
249 const sampleHtml = [
250 "<!doctype html>",

Callers 1

init.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected