Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions website/docs/en/guide/migration/jest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

Rstest is designed to be Jest-compatible, making migration from Jest projects straightforward. Here's how to migrate your Jest project to Rstest:

## Using Agent Skills

If you are using a Coding Agent that supports Skills, install the [migrate-to-rstest](https://github.com/rstackjs/agent-skills#migrate-to-rstest) skill to help with the upgrade process from Jest to Rstest.

```bash
npx skills add rstackjs/agent-skills --skill migrate-to-rstest
```

After installation, let the Coding Agent guide you through the upgrade.

## Installation and setup

First, you need to install Rstest as a development dependency.
Expand Down
10 changes: 10 additions & 0 deletions website/docs/en/guide/migration/vitest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

If you are using the Rstack toolchain (Rsbuild / Rslib / Rspack, etc.), migrating to Rstest gives you a more consistent development experience.

## Using Agent Skills

If you are using a Coding Agent that supports Skills, install the [migrate-to-rstest](https://github.com/rstackjs/agent-skills#migrate-to-rstest) skill to help with the upgrade process from Vitest to Rstest.

```bash
npx skills add rstackjs/agent-skills --skill migrate-to-rstest
```

After installation, let the Coding Agent guide you through the upgrade.

## Install dependencies

First, you need to install the Rstest dependency.
Expand Down
10 changes: 10 additions & 0 deletions website/docs/zh/guide/migration/jest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

Rstest 提供兼容 Jest 的 API,这使得从 Jest 项目迁移变得简单。以下是如何将你的 Jest 项目迁移到 Rstest:

## 使用 Agent Skills

如果你在使用支持 Skills 的 Coding Agent,可以安装 [migrate-to-rstest](https://github.com/rstackjs/agent-skills#migrate-to-rstest) 技能来辅助完成从 Jest 到 Rstest 的迁移。

```bash
npx skills add rstackjs/agent-skills --skill migrate-to-rstest
```

安装后,让 Coding Agent 协助完成升级即可。

## 安装依赖

首先,你需要安装 Rstest 依赖。
Expand Down
10 changes: 10 additions & 0 deletions website/docs/zh/guide/migration/vitest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

如果你正在使用 Rstack 工具链(Rsbuild / Rslib / Rspack 等),迁移到 Rstest 可以带来更一致的开发体验。

## 使用 Agent Skills

如果你在使用支持 Skills 的 Coding Agent,可以安装 [migrate-to-rstest](https://github.com/rstackjs/agent-skills#migrate-to-rstest) 技能来辅助完成从 Vitest 到 Rstest 的迁移。

```bash
npx skills add rstackjs/agent-skills --skill migrate-to-rstest
```

安装后,让 Coding Agent 协助完成升级即可。

## 安装依赖

首先,你需要安装 Rstest 依赖。
Expand Down
Loading