jonath92 / cjs-jest-test-runtime

A Cinnamon JS test runtime for Jest
MIT License
1 stars 0 forks source link

[Question] Does it mean running CJS in the browser? #1

Open danimesq opened 1 year ago

jonath92 commented 1 year ago

No it means running cjs (cinnamon js) in node.js for testing. Similar to what jsdom is for the browser. The idea is basically to mock everything of cjs. But this is obviously a hugh amount of work and therefore is currently very incomplete but I have used for the radio-applet and it has helped me a lot in the past to find some edge cases in my code. Currently the tests of the applet are mostly failing because I haven't maintained the tests well at some point but I am planning to update them and use them in github actions. From a technical point of view, I am still absolutely confinced of this idea.

danimesq commented 1 year ago

I would love to see a reproduction of applets and desklets (a desktop package) running in Electron, for example.

With your NodeJS mock running the basic it can be possible.