Testing your plugin
Testing your plugin locally
Testing your plugin on your book before publishing it is possible using npm link.
In the plugin's folder, run:
$ npm link
Then in your book's folder:
$ npm link gitbook-plugin-<plugin's name>
Unit testing on Travis
Author: snowdreams1006 Url: https://snowdreams1006.github.io/gitbook-official/en/plugins/testing.html Source: snowdreams1006's Gitbook This article was originally published in「snowdreams1006's Gitbook」,Reproduced please indicate the source, thank you for cooperation!