Skip to content

Commit e6408f0

Browse files
authored
docs: update testing commands in CONTRIBUTING.md (#497)
1 parent 1d279cf commit e6408f0

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

CONTRIBUTING.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Thanks for that you are interested in contributing to Rslib. Before starting you
44

55
## Install Node.js
66

7-
Use [fnm](https://github.com/Schniz/fnm) or [nvm](https://github.com/nvm-sh/nvm) to run the command below. This will switch to the Node.js version (currently 18) specified in the project's `.nvmrc` file.
7+
Use [fnm](https://github.com/Schniz/fnm) or [nvm](https://github.com/nvm-sh/nvm) to run the command below. This will switch to the Node.js version specified in the project's `.nvmrc` file.
88

99
```bash
1010
# with fnm
@@ -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)