How to use custom module aliases? #25309
Unanswered
ttbarnes
asked this question in
Questions and Help
Replies: 1 comment
-
You can use https://www.npmjs.com/package/module-alias with updated tsconfig.json @ttbarnes |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hiya, I have a monorepo and one of the directories is for cypress tests. In other servies we can simply add
_moduleAliases
to package.json and we can then import things from a sibling directory, e.g:I've tried doing the exact same for the package.json in the cypress tests directory, but it can't resolve the module when running the tests.
Is it possibile to use custom module aliases in cypress? Can't see any documentation about this and various other posts/discussions seem to go down a rabbit hole and not up to date.
Beta Was this translation helpful? Give feedback.
All reactions