(error)
| 111 | } |
| 112 | |
| 113 | function isExpected(error) { |
| 114 | if (error instanceof postcss.CssSyntaxError) return true |
| 115 | if (!error || typeof error.message !== 'string') return false |
| 116 | // Some legitimate inputs reach known-shaped TypeErrors during stringify or |
| 117 | // walk because the CSS allows constructs whose textual form is ambiguous. |
| 118 | // Suppress only those well-defined cases so real bugs still surface. |
| 119 | let benign = ['Unknown node type', 'Unknown word'] |
| 120 | return benign.some(msg => error.message.indexOf(msg) !== -1) |
| 121 | } |
no test coverage detected
searching dependent graphs…