Skip to content

Commit 4c13d12

Browse files
committed
restore protractor specs for all js preprocessors
1 parent 64e7038 commit 4c13d12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/preprocessors.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var _ = require('lodash');
44

55
function rejectWithRegexp(regexp) {
66
this.files = _.reject(this.files, function(file) {
7+
console.log(file.src);
78
return regexp.test(file.src);
89
});
910
}
@@ -74,7 +75,7 @@ module.exports = function(GulpAngularGenerator) {
7475
}
7576

7677
if(this.props.jsPreprocessor.key !== 'none') {
77-
rejectWithRegexp.call(this, /spec\.js/);
78+
rejectWithRegexp.call(this, /^(?!^e2e\/).*spec\.js/);
7879
}
7980
};
8081

0 commit comments

Comments
 (0)