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

Function filterSuiteTests

lib/command/workers/runTests.js:438–443  ·  view source on GitHub ↗
(suite)

Source from the content-addressed store, hash-verified

436
437 // Recursively filter tests in all suites (including nested ones)
438 const filterSuiteTests = (suite) => {
439 suite.tests = suite.tests.filter(test => tests.indexOf(test.uid) >= 0)
440 for (const childSuite of suite.suites) {
441 filterSuiteTests(childSuite)
442 }
443 }
444
445 for (const suite of mocha.suite.suites) {
446 filterSuiteTests(suite)

Callers 1

filterTestsFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected