summaryrefslogtreecommitdiff
path: root/packages/astro/test/helpers.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-05-26 11:31:53 -0400
committerGravatar GitHub <noreply@github.com> 2021-05-26 11:31:53 -0400
commitda47225efe5cc65cdc0e340f998a8dfbcc45771e (patch)
treedc01ddf04be0cc2a1db2f31d0f3e9910ce575b0a /packages/astro/test/helpers.js
parent8a375e66d27042fe51e6d4217416962d444fad28 (diff)
downloadastro-da47225efe5cc65cdc0e340f998a8dfbcc45771e.tar.gz
astro-da47225efe5cc65cdc0e340f998a8dfbcc45771e.tar.zst
astro-da47225efe5cc65cdc0e340f998a8dfbcc45771e.zip
Add benchmarking for dev and build (#240)
* Add benchmarking for the dev server This adds benchmarking for the dev server. * Use fs.rm instead * Only rimraf if the folder exists * Make uncached match CI * Change the cached time too * Don't run benchmark in CI * Switch back test command * Make tests be within 10 percent * Use yarn to run multiple things * Turn benchmark into uvu tests * Debugging benchmark * Print chunk for testing * Ignore benchmark folder in uvu * Add build benchmarking * Update benchmark numbers
Diffstat (limited to '')
-rw-r--r--packages/astro/test/helpers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/astro/test/helpers.js b/packages/astro/test/helpers.js
index 108383d2e..f3bb0a7e0 100644
--- a/packages/astro/test/helpers.js
+++ b/packages/astro/test/helpers.js
@@ -48,7 +48,7 @@ export function setupBuild(Suite, fixturePath) {
dest: process.stderr,
};
- build = (...args) => astroBuild(astroConfig, ...args);
+ build = () => astroBuild(astroConfig, logging);
context.build = build;
context.readFile = async (path) => {
const resolved = fileURLToPath(new URL(`${fixturePath}/${astroConfig.dist}${path}`, import.meta.url));