We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 740805b commit 5c64b1dCopy full SHA for 5c64b1d
addon/ng2/blueprints/ng2/files/config/karma-test-shim.js
@@ -6,7 +6,7 @@ __karma__.loaded = function () {
6
};
7
8
var distPath = '/base/dist/';
9
-var appPath = distPath + 'app/';
+var appPaths = ['app']; //Add all valid source code folders here
10
11
function isJsFile(path) {
12
return path.slice(-3) == '.js';
@@ -17,7 +17,10 @@ function isSpecFile(path) {
17
}
18
19
function isAppFile(path) {
20
- return isJsFile(path) && (path.substr(0, appPath.length) == appPath);
+ return isJsFile(path) && appPaths.some(function(appPath) {
21
+ var fullAppPath = distPath + appPath + '/';
22
+ return path.substr(0, fullAppPath.length) == fullAppPath;
23
+ });
24
25
26
var allSpecFiles = Object.keys(window.__karma__.files)
0 commit comments