feat: Update templates and generators to support ACP

This commit is contained in:
Joachim Van Herwegen
2022-08-19 11:12:02 +02:00
parent 728617ac77
commit 40f2c8ea42
41 changed files with 800 additions and 271 deletions

View File

@@ -272,6 +272,14 @@ export function mockFileSystem(rootFilepath?: string, time?: Date): { data: any
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
delete folder[name];
},
async pathExists(path: string): Promise<boolean> {
try {
const { folder, name } = getFolder(path);
return Boolean(folder[name]);
} catch {
return false;
}
},
createReadStream(path: string): any {
return mockFs.createReadStream(path);
},