Skip to content

Commit

Permalink
docs: add execute componentName unit test command in readme (#1785)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouchouji authored Sep 28, 2024
1 parent d1165b8 commit f4aaa55
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/varlet-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ varlet-cli build:icons
varlet-cli test
```

#### Execute a unit test

```shell
# playground-ignore
varlet-cli test -c <componentName>
```

#### Execute unit tests in watch mode

```shell
Expand Down
7 changes: 7 additions & 0 deletions packages/varlet-cli/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ varlet-cli build:icons
varlet-cli test
```

#### 执行单个组件的单元测试

```shell
# playground-ignore
varlet-cli test -c <componentName>
```

#### 以 watch 模式执行单元测试

```shell
Expand Down
7 changes: 7 additions & 0 deletions packages/varlet-ui/docs/cli.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ varlet-cli build:icons
varlet-cli test
```

#### Execute a unit test

```shell
# playground-ignore
varlet-cli test -c <componentName>
```

#### Execute unit tests in watch mode

```shell
Expand Down
7 changes: 7 additions & 0 deletions packages/varlet-ui/docs/cli.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ varlet-cli build:icons
varlet-cli test
```

#### 执行单个组件的单元测试

```shell
# playground-ignore
varlet-cli test -c <componentName>
```

#### 以 watch 模式执行单元测试

```shell
Expand Down

0 comments on commit f4aaa55

Please sign in to comment.