DEV Community

Discussion on: Testing A Node/Express Application With Mocha & Chai

Collapse
 
jasoniyi profile image
Jasoniyi

my tests for :id fails too. it shows "Timeout of 6000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves."

Collapse
 
kiddeveloper profile image
Samuel Raphael • Edited

Hi Jasoniyi,

Thanks for reaching out.

I think you need to add this flag --exit to the end of the command. That tells the test to exit once it's done running all it blocks.

I hope that helps