Skip to content

Commit

Permalink
Log unexpected warnings when testing with ReactDOMServerIntegrationTe…
Browse files Browse the repository at this point in the history
…stUtils
  • Loading branch information
eps1lon committed May 11, 2022
1 parent 8197c73 commit aed6ac4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = function(initModules) {
console.log(
`We expected ${count} warning(s), but saw ${filteredWarnings.length} warning(s).`,
);
if (filteredWarnings.count > 0) {
if (filteredWarnings.length > 0) {
console.log(`We saw these warnings:`);
for (let i = 0; i < filteredWarnings.length; i++) {
console.log(...filteredWarnings[i]);
Expand Down

0 comments on commit aed6ac4

Please sign in to comment.