我正在使用jasmine-node,并使用
node.exe path/to/jasmine_node --verbose path/to/my_file.js
这是因为Jasmine-node会被调用,并在路径错误时发出警告,但似乎找不到任何测试。下面是我得到的输出:
"C:\Program Files\nodejs\node.exe" C:\Dropbox\Projects\Demos\web\node_modules\jasmine-node\bin\jasmine-node --verbose --captureExceptions foo\bar.js
undefined
Finished in 0.002 seconds
0 tests, 0 assertions, 0 failures, 0 skippedbar.js的内容肯定包含一个测试。
发布于 2019-11-22 17:02:49
试着跑
npx humile foo\bar.js。
如果它也没有看到任何规范,请检查输出
npx humile foo\bar.js --show-specs
如果命令的输出是文件的绝对路径,那么说明您的规范有问题,而不是test runner。
https://stackoverflow.com/questions/55375258
复制相似问题