JSDoc uses Jasmine as its testing framework. See the Jasmine documentation for details.
Clone the GitHub repository; change to its directory; and run the following commands:
npm install
node jsdoc.js -T
You can write tests for all of the following:
- JSDoc itself. See the
testdirectory. Test specs are intest/specs, and fixtures used by the tests are intest/fixtures. - Plugins. See the
plugins/testdirectory. - Packages. See the
packages/**/testdirectories.