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

Function getFileSize

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

Source from the content-addressed store, hash-verified

118}
119
120export async function getFileSize(fileName: string) {
121 const stats = await fs.stat(fileName);
122
123 return stats.size;
124}
125
126export async function expectFileSizeToBeUnder(fileName: string, sizeInBytes: number) {
127 const fileSize = await getFileSize(fileName);

Callers 1

expectFileSizeToBeUnderFunction · 0.70

Calls 1

statMethod · 0.65

Tested by

no test coverage detected