Skip to content

Commit

Permalink
Update contributing guide test-running examples (#5590)
Browse files Browse the repository at this point in the history
Changes `pnpm run test:match` example to one that works, adds an example of package filtering using that previous RSS case.
  • Loading branch information
mattstein authored Dec 14, 2022
1 parent 2c2c652 commit 2b11e97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b11e97

Please sign in to comment.