nested specs don't work with requirejs #273

azhang opened this Issue Nov 2, 2013 · 1 comment

1 participant


because like 10 in requirejs-setup.js. baseUrl is the spec's directory hence concatenating a relative path will change where it tries to look for requirejs-wrapper-template


I fixed it by doing:

var specUrl = baseUrl.split('spec')[0]+"spec/";
eval(require('fs').readFileSync(specUrl + '../lib/jasmine-node/requirejs-wrapper-template.js', 'utf8'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment