Skip to content

Commit 54a27dd

Browse files
committed
feat(@angular-devkit/core): support resetting a memory host
1 parent efd1c48 commit 54a27dd

File tree

1 file changed

+5
-0
lines changed
  • packages/angular_devkit/core/src/virtual-fs/host

1 file changed

+5
-0
lines changed

packages/angular_devkit/core/src/virtual-fs/host/memory.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,4 +371,9 @@ export class SimpleMemoryHost implements Host<{}> {
371371
watch(path: Path, options?: HostWatchOptions): Observable<HostWatchEvent> | null {
372372
return this._watch(path, options);
373373
}
374+
375+
reset(): void {
376+
this._cache.clear();
377+
this._watchers.clear();
378+
}
374379
}

0 commit comments

Comments
 (0)