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

Function maybeFormat

packages/compiler-cli/preprocessor/test/utils.ts:363–364  ·  view source on GitHub ↗
(p: string, content: string)

Source from the content-addressed store, hash-verified

361 },
362): Promise<TestFile[]> {
363 const maybeFormat = (p: string, content: string): Promise<string> =>
364 options.format === false ? Promise.resolve(content) : formatContent(p, content);
365
366 const nodeModulesPath = resolveFixtureNodeModules();
367

Callers 1

runPipelineFunction · 0.85

Calls 2

formatContentFunction · 0.85
resolveMethod · 0.65

Tested by

no test coverage detected