MCPcopy
hub / github.com/angular/angular / setup

Function setup

packages/compiler-cli/test/test_support.ts:148–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148export function setup(): TestSupport {
149 // // `TestSupport` provides its own file-system abstraction so we just use
150 // // the native `NodeJSFileSystem` under the hood.
151 setFileSystem(new NodeJSFileSystem());
152 const tmpDirPath = makeTempDir();
153 setupBazelTo(tmpDirPath);
154 return createTestSupportFor(tmpDirPath);
155}
156
157export function expectNoDiagnostics(options: ng.CompilerOptions, diags: readonly ts.Diagnostic[]) {
158 const errorDiags = diags.filter((d) => d.category !== ts.DiagnosticCategory.Message);

Callers 6

startMethod · 0.50
runBenchmarkFunction · 0.50

Calls 4

setFileSystemFunction · 0.90
setupBazelToFunction · 0.85
createTestSupportForFunction · 0.85
makeTempDirFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…