(i: number)
| 91 | it("counts an entry added at the top of a large lockfile-like file", () => { |
| 92 | // Arrange |
| 93 | const entry = (i: number) => [` "pkg-${i}": {`, ' "dev": true', " },"]; |
| 94 | const entries = Array.from({ length: 5000 }, (_, i) => entry(i)).flat(); |
| 95 | const original = ["{", ...entries, "}"].join("\n"); |
| 96 | const modified = ["{", ...entry(-1), ...entries, "}"].join("\n"); |
no outgoing calls
no test coverage detected