Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Example of testing AMD modules with Buster.JS
JavaScript
branch: master

Merge pull request #1 from jaabio/patch-1

Use 'resources' instead of 'sources' because AMD modules should not be loaded by script tags
latest commit 072ef32a07
@rhmoller authored

README.md

buster-amd-example

Uses buster.js for testing AMD modules.

I want the test code in a separate folder from the production code.

This mean the baseUrl is differen when running in production and in test mode.

The trick, which I learning from Tiago Rodrigues, is to add a custom configuration object for require.js when it is run by buster. It should contain a paths property which remaps the paths to the production code. If the code is stored in sub-modules you just have to remap the paths to the modules.

Something went wrong with that request. Please try again.