seamless-protocol / seamless-interface

https://seamless-interface.vercel.app
Other
7 stars 6 forks source link

cypress fix aliases #620

Closed WingsDevelopment closed 1 week ago

WingsDevelopment commented 1 week ago

13.11.2024 Srdjan.

We have an issue including any file into cypress tests that uses aliases in itself. Tried configuring aliases in cypress.config but it still seems to not be working properly. Tried to use webpack in cypress instead of vite just to test things out and managed to make it work like that, but I will still play around and try to find the solution on vite, in order to have same environment on tests and production/dev envs.

14.11.2024 Srdjan.

This is on hold today, I want to finish higher priority stuff first, I will continue researching/working on this tomorrow.

15.11.2024 Srdjan Was trying to create and pass vite config inside of cypress config instead of not passing anything and letting cypress to pickup on existing vite config of the application. This solution is matching dev prod and test environemnt and doesn't require any separate maintenance from application.. Found very good solution, that was easy to implement, adding vite-tsconfig-paths package and not passing config resolved issue. Created PR waiting for review.