我的代码有望以
的身份运行 app.post('/login', passport.authenticate('local'), function(req, res) {
res.send(res.userName)
})
我正在编写测试以进行验证
node index.js conf/config1.json conf/config2.json
我希望做类似的事情
conf/config1.json` and `conf/config2.json
在npm test -- conf/config1.json conf/config2.json
中,package.json
指向scripts.test
。
这不起作用;它会因以下错误而失败:
jest
换句话说,使用以上命令,testRegex: - 0 matches
在jest
文件夹中查找测试文件。
conf
:
test/args.test.js