Skip to content

Commit d589114

Browse files
committed
chore(ivy): filter unit tests based on a blacklist
1 parent a3b27cc commit d589114

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/karma-test-shim.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,15 @@ function patchTestBedToDestroyFixturesAfterEveryTest(testBed) {
9595
testBed.resetTestingModule();
9696
});
9797
}
98+
99+
100+
// Filter out any tests explicitly given in the blacklist.
101+
// On the angular/material2 repo, this blacklist is always empty.
102+
// When these tests are run on angular/angular, the blacklist will be replaced
103+
// with all of the known failures when running the component tests with ivy.
104+
var testBlacklist = null;
105+
jasmine.getEnv().configure({
106+
specFilter: function(spec) {
107+
return !testBlacklist || !testBlacklist[spec.getFullName()];
108+
}
109+
});

0 commit comments

Comments
 (0)