Skip to content

Commit 30ee679

Browse files
committed
wip: investigate timeout test discovery issue
- Renamed test data files from .js to .cjs in timeouts config - Updated config to reference .cjs test files - Issue: Test data files (files run BY CodeceptJS) aren't being discovered - Root cause: With 'type:module', all .js files are ESM but test files use globals (Feature, Scenario) that Mocha sets up via require hook - ESM modules can't use this pattern - need different solution - This affects ALL test data files in sandbox, not just timeouts
1 parent b2dfe68 commit 30ee679

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed

test/data/sandbox/configs/timeouts/beforeSuite_timeout_test.js renamed to test/data/sandbox/configs/timeouts/beforeSuite_timeout_test.cjs

File renamed without changes.

test/data/sandbox/configs/timeouts/codecept.conf.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
tests: './*_test.js',
2+
tests: './*_test.cjs',
33
output: './output',
44
helpers: {
55
CustomHelper: {
File renamed without changes.

test/data/sandbox/configs/timeouts/suite_timeout_test.js renamed to test/data/sandbox/configs/timeouts/suite_timeout_test.cjs

File renamed without changes.

0 commit comments

Comments
 (0)