Generate JSDoc post tests
Background
Recently when we merged the next
branch into the master
branch, a script on the server that generated documentation failed. We had written and committed invalid JSDoc. The linter does some checks but it does not seem to catch everything.
A solution to this would be to add npm run docs
to the posttest
script.
What to change
Modify package.json
to change npm run lint
to npm run lint && npm run docs
or something similar.