Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

rhmoller/buster-amd-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Example of testing AMD modules with Buster.JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published