Open mjgs opened 6 years ago
You ran the test without starting the application. Be sure to npm run dev
before you npm run test
. You can find your test files in ./test.
Right, that's better. Might be an idea to have the app start in whatever the newman equivalent of a before hook is. All the tests now pass apart from:
Auth ↳ Register POST http://localhost:3000/api/users [422 Unprocessable Entity, 358B, 163ms]
I can see the test code in the json file now, how do I run and debug it? Is there some way to extract the code so I can run it in a debugger?
I suggest closing this issue. The tests run fine if the app is first started. I think that's a fair precondition.
I'm not familiar with newman, so no idea how to debug this, there is just two json files, where is the code?