If you wish to test them in parallel, see the tips section below. Install jest electron runner with npm i -save-dev one of these lines to your jest config (in package.json or inside your file), depending on the process you wish to test. I simplified the project, converted it from Flow to TypeScript and made it compatible to Jest 27 and newer. Another one is Proton Native which is a newer option thats gaining momentum. ![]() My advice should be: Download electronJS via an Ethernet cable Run using npm i electron -verbose to check for the connection speed If your terminal freeze, do not worry it is downloading in the background I hope this helps node. Last but not least, start your desktop application by using npm start: Now in your project folder, you should see an output. My electronJS nodemodules has been dowloaded successfully but after about 50 minutes. That will launch both the SvelteKit application and the Tauri front end as realized by its Tauri Rust twin. You have successfully built a modern Node.js express application using Electron, Bootstrap and Express.js. As such, we scored kayahr/jest-electron-runner popularity level to be Small. To see Tauris magic at work, type npm run tauri dev. Its similar to Electron, but uses less memory so your desktop app will run faster. The npm package kayahr/jest-electron-runner receives a total of 2,748 downloads a week. This project is a fork of Facebook's which seems to be no longer maintained, was archived on Github and is not working with newer Jest versions. Yeah, there are some great alternatives to Electron that wont bog down your system resources One that comes to mind is NW.js. full access to a browser environment without the need for jsdom or similar modules. ![]()
0 Comments
Leave a Reply. |