summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matt Stein <m@ttste.in> 2022-12-14 11:09:48 -0800
committerGravatar GitHub <noreply@github.com> 2022-12-14 13:09:48 -0600
commit2b11e9795549b5dc1209c2552db85d2b85b8139b (patch)
treebaf261b15311d71868313a4b25d521709070deae
parent2c2c65297a18c52691f09621ead55144efd601d4 (diff)
downloadastro-2b11e9795549b5dc1209c2552db85d2b85b8139b.tar.gz
astro-2b11e9795549b5dc1209c2552db85d2b85b8139b.tar.zst
astro-2b11e9795549b5dc1209c2552db85d2b85b8139b.zip
Update contributing guide test-running examples (#5590)
Changes `pnpm run test:match` example to one that works, adds an example of package filtering using that previous RSS case.
-rw-r--r--CONTRIBUTING.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 3d99e1fa5..92d4c3c51 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -61,9 +61,12 @@ DEBUG=vite:[name] astro dev # debug specific process, e.g. "vite:deps" or "vit
```shell
# run this in the top-level project root to run all tests
pnpm run test
-# run only a few tests, great for working on a single feature
-# (example - `pnpm run test:match "RSS"` runs `astro-rss.test.js`)
+# run only a few tests in the `astro` package, great for working on a single feature
+# (example - `pnpm run test:match "cli"` runs `cli.test.js`)
pnpm run test:match "$STRING_MATCH"
+# run tests on another package
+# (example - `pnpm --filter @astrojs/rss run test` runs `packages/astro-rss/test/rss.test.js`)
+pnpm --filter $STRING_MATCH run test
```
#### E2E tests