Testing¶
This is a small guide that explains how to test the JavaScript client locally.
localhost¶
Run
npm run devin the terminal.There shouldn’t be any error in the console, notifications, ad should be place correctly, flyout floating a the bottom right and search modal should work properly.
Note
This test is very basic and it’s only useful for a quick check. Testing on Read the Docs is the recommended way, but it requires more work to set up.
Read the Docs¶
Clone addons repository next to your
readthedocs.orgcode.Spin up Docker by running
inv docker.up.Optional. Define
USE_PROMOS=Trueif you wan to test EthicalAds addon.Open any built documentation you already have in your local development instance.
Edit any file from addons to see the changes immediately.
Tip
It’s recommended to have test-builds project imported in your local instance with some of the versions already built.
After that, you can go to the home page and click any of the links from the examples.