MCPcopy Index your code
hub / github.com/angular/angular / assertExists

Method assertExists

packages/compiler-cli/test/ngtsc/env.ts:124–128  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

122 }
123
124 assertExists(fileName: string) {
125 if (!this.fs.exists(this.fs.resolve(this.outDir, fileName))) {
126 throw new Error(`Expected ${fileName} to be emitted (outDir: ${this.outDir})`);
127 }
128 }
129
130 assertDoesNotExist(fileName: string) {
131 if (this.fs.exists(this.fs.resolve(this.outDir, fileName))) {

Callers 1

getContentsMethod · 0.95

Calls 2

existsMethod · 0.65
resolveMethod · 0.65

Tested by

no test coverage detected