MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / countState

Function countState

lib/plugin/junitReporter.js:276–278  ·  view source on GitHub ↗
(tests, state)

Source from the content-addressed store, hash-verified

274}
275
276function countState(tests, state) {
277 return tests.filter(t => t.state === state).length
278}
279
280function countSkipped(tests) {
281 return tests.filter(t => t.state === 'skipped' || t.state === 'pending').length

Callers 1

buildXmlFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected