Skip to content

Commit 7764cdc

Browse files
committed
add examples
1 parent 1f381d4 commit 7764cdc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/utils/loaderCheck.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ export function getTSNodeESMWarning(requiredModules = []) {
121121
122122
This is a known limitation. Use tsx/cjs instead to write imports without extensions.
123123
124+
Examples:
125+
126+
❌ Incorrect (will fail):
127+
import loginPage from "./pages/Login";
128+
129+
✅ Correct (must include .ts extension):
130+
import loginPage from "./pages/Login.ts";
131+
124132
📚 Documentation: https://codecept.io/typescript
125133
126134
`

0 commit comments

Comments
 (0)