Closed coatsbj closed 5 years ago
Note that, in order to increase test coverage of this bug, prop type failures must be treated as test failures.
Google suggests the following:
const error = console.error;
console.error = function(warning, ...args) {
if (/(Invalid prop|Failed prop type)/.test(warning)) {
throw new Error(warning);
}
error.apply(console, [warning, ...args]);
};
I am not sure whether this is something we'd want to add to karma.config.js
or something (I suspect not); but I added the following locally to check for other test failures. There are a number of other tests which are failing because required props are not being supplied and/or invalid values are being supplied. I can correct these as well if desired.
If you're up for fixing those issues, I think that's great! Otherwise I can merge this in as is, since it's an improvement.
Could you merge this? I started going down that rabbit hole yesterday, but the changes are somewhat cascading, and I have a team waiting on this to avoid forking. Be happy to submit a follow-up PR with those changes.
Published as 5.6.1.
Codecov Report
80% <ø> (ø)
Continue to review full report at Codecov.