Skip to content

Commit 02f961e

Browse files
committed
[更改] 项目 README 新增 Yarn 指令
1 parent 7285d76 commit 02f961e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,31 @@ Ruixe 的 LeetCode 算法题集,使用 TypeScript 语言,集成 Jest 单元
77
### 安装依赖
88

99
```shell
10+
# NPM
1011
npm install
12+
13+
# Yarn
14+
yarn
1115
```
1216

1317
### 测试所有题解
1418

1519
```shell
20+
# NPM
1621
npm run test
22+
23+
# Yarn
24+
yarn test
1725
```
1826

1927
### 测试指定题解
2028

2129
```shell
30+
# NPM
2231
npx jest [题目编号]
32+
33+
# Yarn
34+
yarn jest [题目编号]
2335
```
2436

2537
注:题解源码与单元测试文件的命名需要包含题目编号,如 `[题目编号]_[英文小驼峰题目名称].test.ts`

0 commit comments

Comments
 (0)