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

Function expectFileSizeToBeUnder

tests/e2e/utils/fs.ts:126–134  ·  view source on GitHub ↗
(fileName: string, sizeInBytes: number)

Source from the content-addressed store, hash-verified

124}
125
126export async function expectFileSizeToBeUnder(fileName: string, sizeInBytes: number) {
127 const fileSize = await getFileSize(fileName);
128
129 if (fileSize > sizeInBytes) {
130 throw new Error(
131 `File "${fileName}" exceeded file size of "${sizeInBytes}". Size is ${fileSize}.`,
132 );
133 }
134}

Callers

nothing calls this directly

Calls 1

getFileSizeFunction · 0.70

Tested by

no test coverage detected