You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Thanks for that you are interested in contributing to Rslib. Before starting you
4
4
5
5
## Install Node.js
6
6
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.
8
8
9
9
```bash
10
10
# with fnm
@@ -88,21 +88,27 @@ You can also run the unit tests of single package:
88
88
pnpm run test:unit packages/core
89
89
```
90
90
91
-
### Run artifact tests
91
+
Update snapshots:
92
92
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:
94
100
95
101
```sh
96
-
pnpm run test:artifact
102
+
pnpm run test:integration
97
103
```
98
104
99
105
If you need to run a specified test, you can add keywords to filter:
100
106
101
107
```sh
102
108
# Only run test cases which contains `dts` keyword in file path
103
-
pnpm test:artifact dts
109
+
pnpm test:integration dts
104
110
# Only run test cases which contains `dts` keyword in test name
0 commit comments