'How to import ts files into cypress test that are not in cypress folder?
Currently I am trying to test my web-extension using cypress and I am continuously getting errors running my test, looking like this:
Here is file structure of my Web-Extension:
I don't have a webpack config in my cypress folder which I know can be an issue, but I guess I am still trying to wrap my head around understanding module bundlers themselves. I have written my web-extension in typescript and I am using Laravel-Mix to bundle my extension. I was eager to know how can I import my files properly from my src folder to my test folder without any complications like this, and if there is a need of understanding how webpack works, please let me know!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|