diff options
author | 2022-02-18 15:23:47 -0500 | |
---|---|---|
committer | 2022-02-18 14:23:47 -0600 | |
commit | 23783648b61b43f342c3c2c5c0d90996419c936c (patch) | |
tree | 96dc4ed62db92b79b706242676737efc5a0bb7d4 /scripts/memory/mk.js | |
parent | 9bdceeef28528f482c98ac369c27ea233051892a (diff) | |
download | astro-23783648b61b43f342c3c2c5c0d90996419c936c.tar.gz astro-23783648b61b43f342c3c2c5c0d90996419c936c.tar.zst astro-23783648b61b43f342c3c2c5c0d90996419c936c.zip |
Adds memory leak test in CI (#2616)
* Add a memory leak test
* Add memory leak smoke test to CI
* Update the latest compiler
* Update yarn.lock
* Remove entries optimization
* Calculate as 5% higher
Diffstat (limited to 'scripts/memory/mk.js')
-rw-r--r-- | scripts/memory/mk.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/memory/mk.js b/scripts/memory/mk.js new file mode 100644 index 000000000..6e6e74637 --- /dev/null +++ b/scripts/memory/mk.js @@ -0,0 +1,11 @@ +import fs from 'fs'; + +const pages = new URL('./project/src/pages/', import.meta.url); + +for(let i = 0; i < 100; i++) { + let content = `--- +const i = ${i}; +--- +<span>{i}</span>`; + await fs.promises.writeFile(new URL(`./page-${i}.astro`, pages), content, 'utf-8'); +} |