MCPcopy Create free account
hub / github.com/glideapps/quicktype / inDir

Function inDir

test/utils.ts:102–110  ·  view source on GitHub ↗
(dir: string, work: () => Promise<void>)

Source from the content-addressed store, hash-verified

100}
101
102export async function inDir(dir: string, work: () => Promise<void>) {
103 let origin = process.cwd();
104
105 debug(`cd ${dir}`);
106 process.chdir(dir);
107
108 await work();
109 process.chdir(origin);
110}
111
112export function testsInDir(dir: string, extension: string): string[] {
113 return shell.ls(`${dir}/*.${extension}`);

Callers 2

setupFunction · 0.90
runWithSampleFunction · 0.90

Calls 1

debugFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…