【发布时间】:2021-12-17 14:14:27
【问题描述】:
当我尝试在__tests__ 文件夹上设置测试文件的位置时,我遇到了 Ponicode 的问题。
我已经按照这个链接上的教程Ponicode Test Location。
但它不起作用。保持在与我的源代码相同的位置生成测试文件。
我的节点版本:14.18
我的settings.json 文件:
...
"ponicode.testSettings.testLocation.locationType": "In folder __tests__ at workspace root",
"ponicode.testSettings.testLocation.path": "{rootDir}/__tests__/{filePath}/{fileName}.test.{ext}"
...
非常感谢。
【问题讨论】:
标签: node.js unit-testing location