codeceptjs 4.0.1-beta.35 → 4.0.1-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -336,8 +336,16 @@ function filterTests() {
|
|
|
336
336
|
mocha.files = files
|
|
337
337
|
mocha.loadFiles()
|
|
338
338
|
|
|
339
|
-
|
|
339
|
+
// Recursively filter tests in all suites (including nested ones)
|
|
340
|
+
const filterSuiteTests = (suite) => {
|
|
340
341
|
suite.tests = suite.tests.filter(test => tests.indexOf(test.uid) >= 0)
|
|
342
|
+
for (const childSuite of suite.suites) {
|
|
343
|
+
filterSuiteTests(childSuite)
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
for (const suite of mocha.suite.suites) {
|
|
348
|
+
filterSuiteTests(suite)
|
|
341
349
|
}
|
|
342
350
|
}
|
|
343
351
|
|