node.jshapi.jshapi.js-lab

Hapi.js lab testing issue


I am new to Hapi.js and node.js in general and am experiencing an issue when trying to code some tests.

Project structure:

enter image description here

When I run "npm test" i get the following output, how can I fix this?:

enter image description here

Thanks in advance!


Solution

  • Change the test script in package.json to:

    "test": "lab -c"