> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.

# name

- **类型：** `string`
- **默认值：** `rstest`

测试项目的名称。

```ts title="rstest.config.ts"
import { defineConfig } from '@rstest/core';

export default defineConfig({
  name: 'node',
});
```

通过 [projects](/zh/config/test/projects.md) 定义的所有项目名称必须唯一；两个项目重名时，Rstest 会在启动时报错。可通过 [--project](/zh/guide/basic/test-filter.md#根据项目名称过滤) 选项按名称过滤项目。

如果 project 未提供名称，Rstest 将会使用当前项目的 `package.json` 中定义的 `name` 属性，如果不存在，则使用文件夹名称。
