I'm building a suite of Dojo/DOH unit tests that are executed by using the built-in browser runner. In addition to the unit tests, I'm building a facility to create mocks for the unit tests, but it requires the Dojo 'undef' API (dojo-undef-api
). During the boot process, Dojo will look at the hasCache
to see if the dojo-undef-api
has been registered, and if it has, it will tack on a undef
method to the global require object to allow modules to be undefined.
Since I'm using the built-in browser runner to execute my tests, I'm curious if there is any way to include or register the dojo-undef-api
. Really, the only means I have in terms of configuration is the URL and URL parameters. Any help would be appreciated.