Skip to content

Commit c7f2670

Browse files
committed
docs: update testing commands in CONTRIBUTING.md
1 parent 1d279cf commit c7f2670

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

CONTRIBUTING.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,27 @@ You can also run the unit tests of single package:
8888
pnpm run test:unit packages/core
8989
```
9090

91-
### Run artifact tests
91+
Update snapshots:
9292

93-
Rslib will also verify the correctness of generated artifacts. You can run the artifact tests by executing the following command:
93+
```sh
94+
pnpm run test:unit -u
95+
```
96+
97+
### Run integration tests
98+
99+
Rslib will also verify the correctness of generated artifacts. You can run the integration tests by executing the following command:
94100

95101
```sh
96-
pnpm run test:artifact
102+
pnpm run test:integration
97103
```
98104

99105
If you need to run a specified test, you can add keywords to filter:
100106

101107
```sh
102108
# Only run test cases which contains `dts` keyword in file path
103-
pnpm test:artifact dts
109+
pnpm test:integration dts
104110
# Only run test cases which contains `dts` keyword in test name
105-
pnpm test:artifact -t dts
111+
pnpm test:integration -t dts
106112
```
107113

108114
## Linting

0 commit comments

Comments
 (0)