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

Method assertExists

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

Source from the content-addressed store, hash-verified

116 }
117
118 assertExists(fileName: string) {
119 if (!this.fs.exists(this.fs.resolve(this.outDir, fileName))) {
120 throw new Error(`Expected ${fileName} to be emitted (outDir: ${this.outDir})`);
121 }
122 }
123
124 assertDoesNotExist(fileName: string) {
125 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