Skip to content

Commit 0c299da

Browse files
committed
docs: update test command
1 parent aae18d8 commit 0c299da

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
- name: Checkout repository
1212
uses: actions/checkout@v4
1313

14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v4
16+
1417
- name: Use node.js
1518
uses: actions/setup-node@v4
1619
with:
1720
node-version: '20.x'
1821
registry-url: 'https://registry.npmjs.org'
1922
cache: 'pnpm'
20-
21-
- name: Install pnpm
22-
uses: pnpm/action-setup@v4
23-
23+
2424
- name: Installing Dependencies
2525
run: pnpm install
2626

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# pnpm test
1+
# pnpm test:unit

README-en_US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export default {
338338
1. learn [Pull Request]("https://help.github.com/articles/using-pull-requests") specification
339339
2. fork this repository
340340
3. create a new branch to modify the code:`git checkout -b my-branch main`
341-
4. make sure your code passes all test cases (new functional test cases need to be added for new features):`pnpm test`
341+
4. make sure your code passes all test cases (new functional test cases need to be added for new features):`pnpm test:unit`
342342
5. create a changeset file using the command:`pnpm changeset`
343343
6. submit your changes using commit (must follow commitlint specification)
344344
7. submit Pull Request

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export default {
340340
1. 熟悉 [Pull Request]("https://help.github.com/articles/using-pull-requests") 规范
341341
2. fork 此仓库
342342
3. 开一个新分支修改代码:`git checkout -b my-branch main`
343-
4. 确保你的代码可以通过所有测试用例(新增功能需要添加新的功能测试用例):`pnpm test`
343+
4. 确保你的代码可以通过所有测试用例(新增功能需要添加新的功能测试用例):`pnpm test:unit`
344344
5. 创建 changeset 文件通过命令:`pnpm changeset`
345345
6. 使用 commit 提交你的修改(需遵循 commitlint 规范)
346346
7. 发起 Pull Request

0 commit comments

Comments
 (0)