MCPcopy Create free account
hub / github.com/angular/components / readFileContent

Function readFileContent

src/cdk/schematics/testing/test-case-setup.ts:29–31  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

27
28/** Reads the UTF8 content of the specified file. Normalizes the path and ensures that */
29export function readFileContent(filePath: string): string {
30 return readFileSync(filePath, 'utf8');
31}
32
33/**
34 * Creates a test app schematic tree that will be copied over to a real filesystem location.

Callers 2

createTestCaseSetupFunction · 0.85
defineJasmineTestCasesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected