codeceptjs 4.0.1-beta.34 → 4.0.1-beta.36

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
 
@@ -119,7 +119,7 @@ const __dirname = __dirname_fn(__filename);
119
119
  let jsContent = transpileTS(filePath)
120
120
 
121
121
  // Find all relative TypeScript imports in this file
122
- const importRegex = /from\s+['"](\..+?)(?:\.ts)?['"]/g
122
+ const importRegex = /from\s+['"](\.[^'"]+?)(?:\.ts)?['"]/g
123
123
  let match
124
124
  const imports = []
125
125
 
@@ -170,7 +170,7 @@ const __dirname = __dirname_fn(__filename);
170
170
 
171
171
  // After all dependencies are transpiled, rewrite imports in this file
172
172
  jsContent = jsContent.replace(
173
- /from\s+['"](\..+?)(?:\.ts)?['"]/g,
173
+ /from\s+['"](\.[^'"]+?)(?:\.ts)?['"]/g,
174
174
  (match, importPath) => {
175
175
  let resolvedPath = path.resolve(fileBaseDir, importPath)
176
176
  const originalExt = path.extname(importPath)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "4.0.1-beta.34",
3
+ "version": "4.0.1-beta.36",
4
4
  "type": "module",
5
5
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
6
6
  "keywords": [