Skip to content

Commit b5aa55d

Browse files
authored
Improve CONTRIBUTING.md (#1678)
* Update CONTRIBUTING.md * fix
1 parent ba95059 commit b5aa55d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ compiled code in `dist`.
2323

2424
Test cases are declared in `src/test/*.spec.ts`, and test fixtures live in `./tests`. They can be run with `npm run test-local`.
2525

26+
To run a subset of tests:
27+
28+
```
29+
# Use ava's --match flag to match the name of a test or suite
30+
# https://github.com/avajs/ava/blob/main/docs/05-command-line.md
31+
# Don't forget the * wildcards
32+
npm run test-local -- --match '*esm loader*'
33+
```
34+
2635
Tests are run with AVA, but using a custom wrapper API to enable some TS-friendly features and grouped test suites.
2736

2837
The tests `npm pack` ts-node into a tarball and `npm install` it into `./tests/node_modules`. This makes `./tests` a better testing environment

0 commit comments

Comments
 (0)