MCPcopy Create free account
hub / github.com/angular/angular / writeFile

Function writeFile

packages/core/schematics/test/service_migration_spec.ts:24–26  ·  view source on GitHub ↗
(filePath: string, contents: string)

Source from the content-addressed store, hash-verified

22 let previousWorkingDir: string;
23
24 function writeFile(filePath: string, contents: string) {
25 host.sync.write(normalize(filePath), virtualFs.stringToFileBuffer(contents));
26 }
27
28 function runMigration() {
29 return runner.runSchematic('service-migration', {}, tree);

Callers 1

Calls 2

writeMethod · 0.65
normalizeFunction · 0.50

Tested by

no test coverage detected