How do I import helper functions from TSX file? #26389
Replies: 1 comment 3 replies
-
hey, we could use some help here as well. We're importing code in the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The problem
Demo project here: https://github.com/philoops/cypress-with-tsx
export const add = (a: number, b: number) => a + b;
to atsx
fileI tried setting up webpack to compile TSX files for cypress, but to no avail:
Any ideas how I can make some progress? I know that refactoring the
add
function to be in its own typescript file makes the tests able to compile. However, for the parallel problem I'm solving, such a refactor is probably not possible.Beta Was this translation helpful? Give feedback.
All reactions