[英]How to run a test by path using jest?
We came up with 2 solutions hehe.我们想出了2个解决方案呵呵。
You can simply run jest <path>
.您可以简单地运行
jest <path>
。
The <path>
can be: relative or absolute path to a file or folder containing test file(s). <path>
可以是:包含测试文件的文件或文件夹的相对或绝对路径。
For example:例如:
jest file1.spec.ts
jest folder1
jest folder2/folder3/file2.spec.ts
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.