Browse Source
chore(docs): correct the naming convention typo in the test files (#4216)
pull/4223/head
前端爱码士
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
docs/src/guide/project/test.md
|
|
|
@ -4,7 +4,7 @@ |
|
|
|
|
|
|
|
## 编写测试用例 |
|
|
|
|
|
|
|
在项目中,我们约定将测试文件名以 `.test.ts` 结尾,或者存放到`__tests__`目录内。例如,创建一个 `utils.ts` 文件,然后同级目录`utils.spec.ts` 文件, |
|
|
|
在项目中,我们约定将测试文件名以 `.test.ts` 结尾,或者存放到`__tests__`目录内。例如,创建一个 `utils.ts` 文件,然后同级目录`utils.test.ts` 文件, |
|
|
|
|
|
|
|
```ts |
|
|
|
// utils.test.ts |
|
|
|
|