Skip to content

Commit f9f8529

Browse files
authored
docs: fixed snippets for testing repo (#479)
1 parent 166093c commit f9f8529

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

CONTRIBUTING.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,19 @@ npx nx@latest serve website
7878

7979
### ▶ 5. Make sure you add / modify tests
8080

81-
Run the following command to make sure there aren't any errors:
81+
Run either command to make sure there aren't any errors:
8282

8383
```shell
84-
pnpm run test
84+
nx component-test headless
8585
```
8686

87+
Or
88+
89+
```shell
90+
pnpm run test:headless
91+
```
92+
93+
Both commands run the same tests. You are free to choose which syntax you prefer.
8794
<br/>
8895

8996
### ▶ 6. Commit your changes using commitizen:
@@ -123,7 +130,13 @@ If you need to update your PR for some reason -
123130
- Re-run the tests to ensure tests are still passing:
124131

125132
```shell
126-
pnpm run test
133+
nx component-test headless
134+
```
135+
136+
Or
137+
138+
```shell
139+
pnpm run test:headless
127140
```
128141

129142
- Rebase your branch and force push to your GitHub repository (this will update your Pull Request):

0 commit comments

Comments
 (0)