Tuesday 22 November 2016

For some reason running Lab tests from package.json with --inspect fails if you run it *without* ./node_modules/.bin/ -- anyone know why?

My only guess is because Lab uses error domains...From my package.json:"test-debug-nonm": "npm run transpile && node --inspect --debug lab -l -e development -m 120000 -v -r console --coverage-exclude test ./dist/test/unit", "test-debug-nm": "npm run transpile && node --inspect --debug ./node_modules/.bin/lab -l -e development -m 120000 -v -r console --coverage-exclude test ./dist/test/unit", "transpile": "gulp transpile", Note that one uses ./node_modules/.bin/lab and the other doesn't (just lab).Console:$ npm run test-debug-nm # all tests run $ npm run test-debug-nonm ... Error: Cannot find module '/Users/abc/work/def/lab' I'm not sure why this would be.

Submitted November 22, 2016 at 10:00PM by MostlyCarbonite

No comments:

Post a Comment