MCPcopy
hub / github.com/webpack/webpack / toMiB

Function toMiB

test/MemoryLimitTestCases.test.js:12–13  ·  view source on GitHub ↗
(/** @type {number} */ bytes)

Source from the content-addressed store, hash-verified

10const expectNoDeprecations = require("./helpers/expectNoDeprecations");
11
12const toMiB = (/** @type {number} */ bytes) =>
13 `${Math.round(bytes / 1024 / 1024)}MiB`;
14const base = path.join(__dirname, "memoryLimitCases");
15const outputBase = path.join(__dirname, "js", "memoryLimit");
16const tests = fs

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected