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
- for (const suite of mocha.suite.suites) {
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "4.0.1-beta.35",
3
+ "version": "4.0.1-beta.37",
4
4
  "type": "module",
5
5
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
6
6
  "keywords": [