(test)
| 268 | } |
| 269 | |
| 270 | function skipReason(test) { |
| 271 | if (test.opts && test.opts.skipInfo && test.opts.skipInfo.message) return test.opts.skipInfo.message |
| 272 | if (test.meta && test.meta.skipReason) return test.meta.skipReason |
| 273 | return '' |
| 274 | } |
| 275 | |
| 276 | function countState(tests, state) { |
| 277 | return tests.filter(t => t.state === state).length |