add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

36
pages.zh/common/jest.md Normal file
View File

@@ -0,0 +1,36 @@
# jest
> 一个零配置的 JavaScript 测试平台。
> 更多信息:<https://jestjs.io>。
- 运行所有可用的测试:
`jest`
- 从给定文件中运行测试套件:
`jest {{path/to/file1 path/to/file2 ...}}`
- 从当前和子目录中路径匹配给定正则表达式的文件中运行测试套件:
`jest {{regular_expression1}} {{regular_expression2}}`
- 运行名称匹配给定正则表达式的测试:
`jest --testNamePattern {{regular_expression}}`
- 运行与给定源文件相关的测试套件:
`jest --findRelatedTests {{path/to/source_file.js}}`
- 运行与所有未提交文件相关的测试套件:
`jest --onlyChanged`
- 监视文件的更改并自动重新运行相关测试:
`jest --watch`
- 显示帮助:
`jest --help`