Skip to content

Commit 44f9a6f

Browse files
authored
docs: use code-group for install commands (#2571)
1 parent 96ef276 commit 44f9a6f

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

docs/fr/installation/index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# Installation
22

3-
```bash
3+
::: code-group
4+
5+
```shell [npm]
46
npm install --save-dev @vue/test-utils
7+
```
58

6-
# or
9+
```shell [yarn]
710
yarn add --dev @vue/test-utils
811
```
912

13+
:::
14+
1015
## Utilisation
1116

1217
Vue Test Utils est un outil indépendant de tout framework - vous pouvez l'utiliser avec le gestionnaire de tests de votre choix. La manière la plus simple pour l'essayer est d'utiliser [Jest](https://jestjs.io/), un gestionnaire de tests populaire.

docs/installation/index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# Installation
22

3-
```bash
3+
::: code-group
4+
5+
```shell [npm]
46
npm install --save-dev @vue/test-utils
7+
```
58

6-
# or
9+
```shell [yarn]
710
yarn add --dev @vue/test-utils
811
```
912

13+
:::
14+
1015
## Usage
1116

1217
Vue Test Utils is framework agnostic - you can use it with whichever test runner you like. The easiest way to try it out is using [Jest](https://jestjs.io/), a popular test runner.

docs/zh/installation/index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# 安装
22

3-
```bash
3+
::: code-group
4+
5+
```shell [npm]
46
npm install --save-dev @vue/test-utils
7+
```
58

6-
# or
9+
```shell [yarn]
710
yarn add --dev @vue/test-utils
811
```
912

13+
:::
14+
1015
## 用法
1116

1217
Vue Test Utils 是与框架无关的 - 你可以与任何你喜欢的测试运行器一起使用。最简单的尝试方式是使用 [Jest](https://jestjs.io/),这是一个流行的测试运行器。

0 commit comments

Comments
 (0)