Testing `jest-preview` in multiple platforms
What & Why
-
jest-previewis developed and tested on macOS. So we are not sure if it works on other platforms:- OS: Windows, linux...
- Monorepo: lerna, turborepo...
How
- We should find a way to make sure this library works on other platforms:
- Seeking helps from contributors to test on other platforms
- Setup CI/CD to run tests automatically
@all-contributors please add @ntbinh-Harvey for test
Hi there! I'm currently running Jest + Jest-Preview in WSL. I've tried using the npm-run-all approach, running the jest-preview server separately, and calling the manual debug() vs jestPreviewConfigure({ autoPreview: true }) and none of the approaches seem to work. Jest just runs normally and skips past the debug() call. I imagine its probably something to do with WSL, but figured I'd report it here! I'll work on getting a reproduction in place.
Hi @ParamagicDev. Thank you for reporting this issue to us. I haven't tried Jest Preview in WSL, also, we are having an issue on Linux that the Jest Preview Dashboard does not automatically reload (#138). I think this might be related.
Jest just runs normally and skips past the
debug()call
I'm not sure I understand this one yet. Can you do us a favor by creating another issue, describe what issues are you facing with a reproduction? It will be easier for us to track the issue on WSL, and of course, reproduce and fix the bug.
Thank you again.
@nvh95 The only current reproduction I have is my Shadow Dom Testing library here:
https://github.com/ParamagicDev/shadow-dom-testing-library
it should be just:
git clone https://github.com/ParamagicDev/shadow-dom-testing-library
cd shadow-dom-testing-library
npm install
# Modify a file to include the jest-preview
npm run test
@ParamagicDev Can you please update jest-preview to the newest version (>= 0.2.8) then try again. We fix that issue in https://github.com/nvh95/jest-preview/pull/200.
Thanks.
We tested the core function of jest-preview on
- [x] Mac (development machine)
- [x] Ubuntu
- [x] Windows
We also have CI to run on Ubuntu and Windows (GitHub Actions)
We also run it in some monorepo.