A large collection of jsdoc use cases to test your changes on. The general idea is, after you have made changes to the jsdoc2md code or template, run the build script in this project to generate output for dozens of jsdoc use cases. If there are differences, you have broken something (either intentionally or not).
- Make code/template changes to dmd, jsdoc-parse, whatever
- Checkout https://github.com/jsdoc2md/testbed
- In the testbed project folder run
npm install
- Examine the dep tree (
npm ls
) then link in the relevant local projects where you made changes- Run
npm link ../dmd/
npm link
jsdoc-api and/or jsdoc-to-markdown if you made changes there too.- Now your testbed points to your modified code
- Run
- Run
node bin/cli.mjs
. This runs jsdoc2md against all the test fixtures recursively in thebuild
directory. - Run
git status
.- git status shows no changes
- Well done, your local changes didn't break the jsdoc2md output!
- git status shows changes
- You broke something. If that was not intentional, fix the issue in your dmd fork and return to step 5. If it was intentional, then submit a PR adding your new test case to the testbed project.
- git status shows no changes
All output produced by jsdoc2md needs to be verified as correct on these platforms at the minimum:
- github.com
- npmjs.org