MCPcopy
hub / github.com/angular/angular / writeFile

Function writeFile

packages/core/schematics/test/all-migrations.spec.ts:57–59  ·  view source on GitHub ↗
(filePath: string, contents: string)

Source from the content-addressed store, hash-verified

55 });
56
57 function writeFile(filePath: string, contents: string) {
58 host.sync.write(normalize(filePath), virtualFs.stringToFileBuffer(contents));
59 }
60
61 async function runMigration(migrationName: string) {
62 await runner.runSchematic(migrationName, undefined, tree);

Callers 2

createTestsFunction · 0.70

Calls 2

writeMethod · 0.65
normalizeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…