MCPcopy Index your code
hub / github.com/angular/angular-cli / expectFileNotToExist

Function expectFileNotToExist

tests/e2e/utils/fs.ts:90–98  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

88}
89
90export async function expectFileNotToExist(fileName: string): Promise<void> {
91 try {
92 await fs.access(fileName, constants.F_OK);
93 } catch {
94 return;
95 }
96
97 throw new Error(`File ${fileName} was expected not to exist but found...`);
98}
99
100export async function expectFileToExist(fileName: string): Promise<void> {
101 try {

Calls

no outgoing calls

Tested by

no test coverage detected