MCPcopy Index your code
hub / github.com/changesets/changesets / testdir

Function testdir

scripts/test-utils/src/index.ts:94–103  ·  view source on GitHub ↗
(dir: Fixture)

Source from the content-addressed store, hash-verified

92export interface Fixture extends Record<string, string> {}
93
94export async function testdir(dir: Fixture) {
95 const temp = f.temp();
96 await Promise.all(
97 Object.keys(dir).map(async (filename) => {
98 const fullPath = path.join(temp, filename);
99 await fs.outputFile(fullPath, dir[filename]);
100 })
101 );
102 return temp;
103}
104
105export const tempdir = f.temp;
106

Callers 15

testSetupFunction · 0.90
index.test.tsFile · 0.90
run.test.tsFile · 0.90
command.tsFile · 0.90
version.test.tsFile · 0.90
index.test.tsFile · 0.90
add.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 1

testSetupFunction · 0.72