Skip to content

Instantly share code, notes, and snippets.

@MandarinConLaBarba
Last active December 14, 2015 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MandarinConLaBarba/5066968 to your computer and use it in GitHub Desktop.
Save MandarinConLaBarba/5066968 to your computer and use it in GitHub Desktop.
require.config({
"baseUrl" : "/base",
//paths to the stuff Testacular has loaded into the server, but not included in the page
"paths" : {
"jquery" : "vendor/jquery/jquery",
"chai" : "vendor/chai/chai",
"underscore" : "vendor/underscore-amd/underscore",
"sinon" : "vendor/sinon/sinon"
},
//Some shims..
"shim" : {
"chai" : {
"exports" : "chai"
},
"sinon" : {
"exports" : "sinon"
}
},
//The test to run...this tells RequireJS to run the test when it loads
deps : ["test/index"],
//This is run when the deps are all loaded
callback : function() {
window.__testacular__.start();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment