Intern uses the Dojo Toolkit’s AMD loader. To mock out dependencies, you should be able to just use the standard AMD map
feature. In your Intern configuration file, something like this should do what you need:
define({
…,
loader: {
map: {
myPackage: {
'myPackage/foo': 'myPackage/mocks/foo',
'herp': 'myPackage/mocks/herp',
'derp': 'myPackage/mocks/derp'
}
}
}
});
See https://github.com/amdjs/amdjs-api/wiki/Common-Config#map- for more information on map
.