We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
appendToFile
1 parent e567e0c commit 5e2e392Copy full SHA for 5e2e392
packages/angular_devkit/build_angular/src/testing/builder-harness.ts
@@ -256,6 +256,10 @@ export class BuilderHarness<T> {
256
return this.execute(options).pipe(first()).toPromise();
257
}
258
259
+ async appendToFile(path: string, content: string): Promise<void> {
260
+ await this.writeFile(path, this.readFile(path).concat(content));
261
+ }
262
+
263
async writeFile(path: string, content: string | Buffer): Promise<void> {
264
this.host
265
.scopedSync()
0 commit comments