npm测试失败,没有任何错误消息

问题描述 投票:1回答:1

测试失败,没有错误,只是上面的消息。

我的测试脚本是:

"test": "TEST=true tape test/core/*.js test/core/ui/user-interface.js test/core/modules/QR.js | tap-spec; browserify test/core/modules/image-sequencer.js test/core/modules/chain.js test/core/modules/meta-modules.js test/core/modules/replace.js test/core/modules/import-export.js test/core/modules/run.js test/core/modules/dynamic-imports.js test/core/util/parse-input.js test/core/modules/benchmark.js| tape-run --render="tap-spec"", 

眼镜:

  • 操作系统:Ubuntu 18.04.1
  • 节点:10.15.3
  • npm:6.4.1
javascript node.js unit-testing npm
1个回答
0
投票

您提供的测试脚本是有限的,但首先要突出的是在测试值结束时逃避您的报价tape-run --render =“tap-spec”“to to

“test”:“TEST = true tape ... | tape-run --render = \”tap-spec \“”,

你应该包括整个package.json文件,因为我想知道你是否需要一个require(“babel-register”)以及所需的依赖项What does "register" mean in "babel/register"

© www.soinside.com 2019 - 2024. All rights reserved.