You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scenario Steps report wrong line/column for TypeScript include modules #5772
Scenario Steps report wrong line/column for TypeScript include modules (after path fix)
Summary
After #5685 (current releases / latest on npm), Scenario Steps for TypeScript include modules show the correct .ts path, but line/column still come from the transpiled .temp.mjs, not the source file. Steps in test files report correct lines.
Install codeceptjs, tsx, and typescript in one command. Check Scenario Steps for the I.doThing line.
Location
Expected (source)
Reported (latest)
I.doThing in pages/fooPage.ts
./pages/fooPage.ts:6:5
./pages/fooPage.ts:4:11
I.failNow in tests/fooTest.ts
./tests/fooTest.ts:5:5
./tests/fooTest.ts:5:5 ✓
Environment
CodeceptJS latest on npm (reproduced on 4.2.2)
Node 26.x, macOS
require: ['tsx/cjs']
Suggested fix
Remap line/column when rewriting .temp.mjs → .ts (source maps or equivalent), and add a sandbox runner test that asserts source line/col for an included page object step.
Activity