chore(build): run security tests in NodeJS, too.
This commit is contained in:
parent
f86edae9f3
commit
99c0d503d7
@ -33,7 +33,7 @@ if (globsIndex < 0) {
|
|||||||
|
|
||||||
var specFiles =
|
var specFiles =
|
||||||
args.map(function(globstr) {
|
args.map(function(globstr) {
|
||||||
return glob.sync(globstr, {
|
var tests = glob.sync(globstr, {
|
||||||
cwd: distAll,
|
cwd: distAll,
|
||||||
ignore: [
|
ignore: [
|
||||||
// the following code and tests are not compatible with CJS/node environment
|
// the following code and tests are not compatible with CJS/node environment
|
||||||
@ -51,6 +51,10 @@ var specFiles =
|
|||||||
'payload_tests/**'
|
'payload_tests/**'
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
// The security spec however works (and must work!) on the server side.
|
||||||
|
tests = tests.concat(
|
||||||
|
glob.sync('@angular/platform-browser/test/security/**/*_spec.js', {cwd: distAll}));
|
||||||
|
return tests;
|
||||||
})
|
})
|
||||||
.reduce(function(specFiles, paths) { return specFiles.concat(paths); }, []);
|
.reduce(function(specFiles, paths) { return specFiles.concat(paths); }, []);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user