Skip to content

Commit 1ee93f4

Browse files
authored
chore: improve docs on testing (#2456)
1 parent 0c883a4 commit 1ee93f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ yarn test
1010
yarn prettier path/to/file.php`
1111
1212
# run a single test
13-
yarn test tests/{folder of your choice}
13+
yarn test:node tests/{folder of your choice}
1414
```
1515

1616
Here's what you need to know about the tests:
1717
1818
- The tests use [Jest](https://facebook.github.io/jest/) snapshots.
19-
- You can make changes and run `jest -u` (or `yarn test -u`) to update the snapshots. Then run `git diff` to take a look at what changed. Always update the snapshots when opening a PR.
20-
- You can run `AST_COMPARE=1 yarn test` for a more robust test run. That formats each file, re-parses it, and compares the new AST with the original one and makes sure they are semantically equivalent.
19+
- You can make changes and run `jest -u` (or `yarn test:node -u`) to update the snapshots. Then run `git diff` to take a look at what changed. Always update the snapshots when opening a PR.
20+
- You can run `AST_COMPARE=1 yarn test:node` for a more robust test run. That formats each file, re-parses it, and compares the new AST with the original one and makes sure they are semantically equivalent.
2121
2222
Run `yarn lint --fix` to automatically format files.
2323

0 commit comments

Comments
 (0)