Hapi Lab why Test failed when all the tests are passed

人盡茶涼 提交于 2019-12-05 10:33:57

The test fails because lab detected a global variable leak:

The following leaks were detected:lr

This means you probably defined the lr variable somewhere as global. Try to find where you did that and make the variable local. The other option is to run lab with the -l option which disables global variable leak detection (it is not recommended though).

I resolved this by deleting my node_modules folder and running "npm install" again since my major versions of both node & npm had changed.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!