MCPcopy Index your code
hub / github.com/remix-run/react-router / writeTestFiles

Function writeTestFiles

integration/helpers/create-fixture.ts:536–549  ·  view source on GitHub ↗
(
  files: Record<string, string> | undefined,
  dir: string,
)

Source from the content-addressed store, hash-verified

534}
535
536async function writeTestFiles(
537 files: Record<string, string> | undefined,
538 dir: string,
539) {
540 await Promise.all(
541 Object.keys(files ?? {}).map(async (filename) => {
542 let filePath = path.join(dir, filename);
543 await mkdir(path.dirname(filePath), { recursive: true });
544 let file = files![filename];
545
546 await writeFile(filePath, stripIndent(file));
547 }),
548 );
549}

Callers 1

createFixtureProjectFunction · 0.85

Calls 1

writeFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…