Avoiding whole file import in TypeScript Cucumber Setup #2178
Answered
by
davidjgoss
amalv
asked this question in
Q&A JavaScript
-
Hello, I'm wondering if there is a way to avoid importing the whole file like this in the steps:
If I remove the index.ts part, it shows me an error:
My
Error when running tests without
|
Beta Was this translation helpful? Give feedback.
Answered by
davidjgoss
Aug 22, 2024
Replies: 1 comment
-
This is just how ESM works unfortunately, directory imports are not supported. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
amalv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is just how ESM works unfortunately, directory imports are not supported.