Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Short description of the solution

  • Loading branch information...
commit e13abac3cdfe857ea21170e0bc3357f970a0f304 1 parent c01d162
@rhmoller authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 README.md
View
12 README.md
@@ -1,7 +1,15 @@
buster-amd-example
==================
-Trying to use buster.js for testing code based on AMD/require.js
+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.
-I am having trouble figuring out how to configure AMD for buster.js. Hopefully someone can point me in the rigth direction.
Please sign in to comment.
Something went wrong with that request. Please try again.