graasp / graasp-account

GNU Affero General Public License v3.0
0 stars 2 forks source link

Cypress does not work well with new tsconfig.app.json #378

Open spaenleh opened 5 days ago

spaenleh commented 5 days ago

Cypress and webpack are having issues with the new multi Ts-config setup proposed in recent vite projects.

We have to add module: EsNext in the tsconfig.json at the root for it to compile to ESM... otherwise the cypress.config.ts is compiled to CJS...

We can not use path imports as they are not picked up by webpack when bundling the tests ... this is very annoying as it is not correctly marked by typescript when writing the tests ...

We should consider moving to a different framework maybe.