Getting this error....Need some sample test cases pls. Really tried to delete node_modules and installed again as suggested in forums and didnt work out..Got stucked with this..
C:\Hackathon\Samaritan\dashboard-service>npm test
dashboard-service@0.0.1 test C:\Hackathon\Samaritan\dashboard-service
mocha specs --reporter spec
TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type object
at Module.require (internal/modules/cjs/loader.js:631:11)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (C:\Hackathon\Samaritan\dashboard-service\specs\test.js:22:13)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\mocha.js:330:36
at Array.forEach ()
at Mocha.loadFiles (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\mocha.js:327:14)
at Mocha.run (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\mocha.js:804:10)
at Object.exports.singleRun (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\cli\run-helpers.js:207:16)
at exports.runMocha (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\cli\run-helpers.js:300:13)
at Object.exports.handler.argv [as handler] (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\cli\run.js:296:3)
at Object.runCommand (C:\Hackathon\Samaritan\dashboard-service\node_modules\yargs\lib\command.js:242:26)
at Object.parseArgs [as _parseArgs] (C:\Hackathon\Samaritan\dashboard-service\node_modules\yargs\yargs.js:1087:28)
at Object.parse (C:\Hackathon\Samaritan\dashboard-service\node_modules\yargs\yargs.js:566:25)
at Object.exports.main (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\cli\cli.js:63:6)
at Object. (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\bin_mocha:10:23)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
npm ERR! Test failed. See above for more details.
Getting this error....Need some sample test cases pls. Really tried to delete node_modules and installed again as suggested in forums and didnt work out..Got stucked with this..
C:\Hackathon\Samaritan\dashboard-service>npm test
C:\Hackathon\Samaritan\dashboard-service\node_modules\yargs\yargs.js:1163 else throw err ^
TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type object at Module.require (internal/modules/cjs/loader.js:631:11) at require (internal/modules/cjs/helpers.js:22:18) at Object. (C:\Hackathon\Samaritan\dashboard-service\specs\test.js:22:13)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\mocha.js:330:36
at Array.forEach ()
at Mocha.loadFiles (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\mocha.js:327:14)
at Mocha.run (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\mocha.js:804:10)
at Object.exports.singleRun (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\cli\run-helpers.js:207:16)
at exports.runMocha (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\cli\run-helpers.js:300:13)
at Object.exports.handler.argv [as handler] (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\cli\run.js:296:3)
at Object.runCommand (C:\Hackathon\Samaritan\dashboard-service\node_modules\yargs\lib\command.js:242:26)
at Object.parseArgs [as _parseArgs] (C:\Hackathon\Samaritan\dashboard-service\node_modules\yargs\yargs.js:1087:28)
at Object.parse (C:\Hackathon\Samaritan\dashboard-service\node_modules\yargs\yargs.js:566:25)
at Object.exports.main (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\lib\cli\cli.js:63:6)
at Object. (C:\Hackathon\Samaritan\dashboard-service\node_modules\mocha\bin_mocha:10:23)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
npm ERR! Test failed. See above for more details.