Add npm test task to the generated package if mocha is used