Akryum / peeky

A fast and fun test runner for Vite & Node 🐈️ Powered by Vite ⚡️
https://peeky.dev
MIT License
681 stars 17 forks source link

Cannot find module error on Windows #2

Closed layanto closed 2 years ago

layanto commented 3 years ago

Following getting started (https://peeky.netlify.app/guide/#our-first-test), I am getting Cannot find module

Cannot find module 'c:\Projects\peeky\src\test-gOdPlmAKc.js'
Require stack:
- c:\Projects\peeky\node_modules\@peeky\runner\dist\worker.js

Note that the spec file is in c:\Projects\peeky\src\example.spec.js, there is no test-gOdPlmAKc.js file.

layanto commented 3 years ago

Looks like not working on Windows. But working on Windows with WSL (Windows Subsystem Linux). With Ubuntu WSL, both npm run test and npm run test:open work as expected. Windows: image Ubuntu WSL: image

Akryum commented 3 years ago

I didn't test peeky on Windows yet 🐈 (Ofc it had to not work on Windows 🤦 )

flicker71 commented 2 years ago

Hey, we also have the following error on windows: image

(without WSL) Thanks for your help!

Akryum commented 2 years ago

The build and execute pipeline has been completely reworked with Vite. Please try again and let me know if the issue is still present.

mathieutu commented 2 years ago

Hi @Akryum! (@flicker71 is one of my student, I told him to leave you this message 😉)

Thanks for your efficiency! Could you tag a release so we can test on windows computers?

Akryum commented 2 years ago

Done, 0.6.0 available

mathieutu commented 2 years ago

@flicker71 could you please update your dependencies (yarn upgrade @peeky/cli --latest) and tell us if yarn test is working on your computer?

Thanks!

zjhou commented 2 years ago

image still got this error after yarn upgrade @peeky/cli -latest

layanto commented 2 years ago

"peeky run" now works, but "peeky open" still doesn't work for me on Windows.

image

layanto commented 2 years ago

"peeky open" works with latest peeky release.