Open fatso83 opened 2 years ago
In https://github.com/larsthorup/mocha-vite-puppeteer/blob/main/package.json we have this npm script:
"test:app": "cd test/app && npm test",
which works just fine.
I am not sure I understand from your description above how your setup differs from that?
What's in your code/app1/vite.config.ts
?
Would you have time to create a small public repo that reproduces your issue?
I am getting these quite cryptic error message when trying your mocha runner and I assume it might be due to the file directory layout of my project.
The relevant bits of my NPM scripts look like this:
So I have basically two apps sharing the same node_modules folder, with their separate setups. If I try to launch your tool from a sub-directory like
code/app1
I just get this error:I seem to recollect that I got this working the last time I tried in August, but then I was deep into Vite internals (to figure out how to do module mocking), all of which is long gone. Any pointers?