Integration Testing for Electron-Forge with WebdriverIO -- 2
Budget: €8 – €30 EUR
How to Write Tests for an Electron-Forge + Vite + Vue Project Using WebdriverIO?
I'm working on an Electron-Forge project with Vite and Vue (https://github.com/alessandro-candon/stashbox) and trying to set up tests using WebdriverIO.
When I run npm run wdio, the process starts well, but I encounter the following error:
Uncaught Exception:
stashbox/src/main.js:1
import {app, BrowserWindow} from 'electron';
^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (node:internal/modules/cjs/loader:1385:20)
at Module._compile (node:internal/modules/cjs/loader:1435:41)
at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
at Module.load (node:internal/modules/cjs/loader:1295:32)
at Module._load (node:internal/modules/cjs/loader:1111:12)
at c._load (node:electron/js2c/node_init:2:16955)
at cjsLoader (node:internal/modules/esm/translators:350:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
My final need is to write easily tests for this utility : src/main/gcp/bucket.js to write a file in the fake-gcp-storage.
*** The final request will be made a PR on my project with a single working test for the utility bucket.js and of course, the app must still running.***
My project is celare, I give you the source code and the needs, I can't pay more then the project show 30€, please don't waste my and your time...
I'm working on an Electron-Forge project with Vite and Vue (https://github.com/alessandro-candon/stashbox) and trying to set up tests using WebdriverIO.
When I run npm run wdio, the process starts well, but I encounter the following error:
Uncaught Exception:
stashbox/src/main.js:1
import {app, BrowserWindow} from 'electron';
^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (node:internal/modules/cjs/loader:1385:20)
at Module._compile (node:internal/modules/cjs/loader:1435:41)
at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
at Module.load (node:internal/modules/cjs/loader:1295:32)
at Module._load (node:internal/modules/cjs/loader:1111:12)
at c._load (node:electron/js2c/node_init:2:16955)
at cjsLoader (node:internal/modules/esm/translators:350:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
My final need is to write easily tests for this utility : src/main/gcp/bucket.js to write a file in the fake-gcp-storage.
*** The final request will be made a PR on my project with a single working test for the utility bucket.js and of course, the app must still running.***
My project is celare, I give you the source code and the needs, I can't pay more then the project show 30€, please don't waste my and your time...