Loading your scripts

jstest does not care how you go about loading your code, so you are free to
use any module loader you like. However, if you’re not using a module loader,
or want to run your tests on both the client and the server, jstest can help
you out.

In Getting started, you set up a page using script tags to load
your code. On some platforms, these scripts will be aggressively cached,
making it hard to test your code reliably. And if you want to run your tests
on the server, or using other browser test runners, you’ll need to duplicate
the information in the script tags using those platforms’ script loading APIs.

jstest lets you solve both these problems by using a programmatic API for
loading your code. Add the following to example/runner.js: