Skip to content

Commit b84df0e

Browse files
authored
docs: fix init command documentation (#894)
1 parent 2b86091 commit b84df0e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

website/docs/en/guide/browser-testing/getting-started.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { PackageManagerTabs } from '@theme';
1010

1111
## Automatic initialization
1212

13-
The quickest way is to use the `rstest init browser` command for automatic configuration:
13+
The quickest way is to use the `@rstest/core init browser` command for automatic configuration:
1414

15-
<PackageManagerTabs command="rstest init browser" dlx />
15+
<PackageManagerTabs command="@rstest/core init browser" dlx />
1616

1717
### Initialization process
1818

@@ -30,7 +30,7 @@ When you run the command, Rstest automatically:
3030
Here's an example output for a React project:
3131

3232
```bash
33-
◆ rstest init browser
33+
@rstest/core init browser
3434

3535
Detecting project...
3636
✓ Found React 19.0.0
@@ -59,7 +59,7 @@ After initialization, follow the "Next steps" instructions in the output: instal
5959
In CI or other non-interactive environments, add the `--yes` flag to skip all prompts and use detected configuration:
6060

6161
```bash
62-
npx rstest init browser --yes
62+
npx @rstest/core init browser --yes
6363
```
6464

6565
:::

website/docs/zh/guide/browser-testing/getting-started.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { PackageManagerTabs } from '@theme';
1010

1111
## 自动初始化
1212

13-
最快速的方式是使用 `rstest init browser` 命令自动完成配置:
13+
最快速的方式是使用 `@rstest/core init browser` 命令自动完成配置:
1414

15-
<PackageManagerTabs command="rstest init browser" dlx />
15+
<PackageManagerTabs command="@rstest/core init browser" dlx />
1616

1717
### 初始化过程
1818

@@ -30,7 +30,7 @@ import { PackageManagerTabs } from '@theme';
3030
以下是 React 项目的初始化输出示例:
3131

3232
```bash
33-
◆ rstest init browser
33+
@rstest/core init browser
3434

3535
Detecting project...
3636
✓ Found React 19.0.0
@@ -59,7 +59,7 @@ import { PackageManagerTabs } from '@theme';
5959
在 CI 或其他非交互式环境中,可以添加 `--yes` 参数跳过所有提示,直接使用嗅探到的配置:
6060

6161
```bash
62-
npx rstest init browser --yes
62+
npx @rstest/core init browser --yes
6363
```
6464

6565
:::

0 commit comments

Comments
 (0)