Permalink
Browse files

fix(cli build): reassign global.define.amd after assigning karma over…

…ride function

aurelia/testing ComponentTester wasn't working. Bootstrapper failed to return with an error that there was no loader defined. Tracked the error down to a dependency reassigning window.require because define.amd was undefined.

aurelia/testing issue #71
  • Loading branch information...
ryan-smith-virteom committed Mar 6, 2018
1 parent dda7d63 commit 9eee46f66535623a79f5ef6999cbd5e08c111aac
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/resources/test/require.aurelia-karma.js
@@ -66,6 +66,7 @@
return originalDefine(name, deps, m);
}
global.define.amd = originalDefine.amd;
}
function requireTests() {

0 comments on commit 9eee46f

Please sign in to comment.