summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2024-06-17 14:23:10 +0800
committerGravatar GitHub <noreply@github.com> 2024-06-17 14:23:10 +0800
commite22be22e5729e60220726e92b52d2833c937fd1c (patch)
tree887bbea465e90336d52d3d4e01660aa8123a55a0 /CONTRIBUTING.md
parent68f1d0d13e828d77721010ca840c12dfb383c4e7 (diff)
downloadastro-e22be22e5729e60220726e92b52d2833c937fd1c.tar.gz
astro-e22be22e5729e60220726e92b52d2833c937fd1c.tar.zst
astro-e22be22e5729e60220726e92b52d2833c937fd1c.zip
Refactor prerendering chunk handling (#11245)
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 918fffaca..2f2e63786 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -176,6 +176,12 @@ Any tests for `astro build` output should use the main `mocha` tests rather than
If a test needs to validate what happens on the page after it's loading in the browser, that's a perfect use for E2E dev server tests, i.e. to verify that hot-module reloading works in `astro dev` or that components were client hydrated and are interactive.
+#### Creating tests
+
+When creating new tests, it's best to reference other existing test files and replicate the same setup. Some other tips include:
+
+- When re-using a fixture multiple times with different configurations, you should also configure unique `outDir`, `build.client`, and `build.server` values so the build output runtime isn't cached and shared by ESM between test runs.
+
### Other useful commands
```shell