I have an automated test suite at my workplace for an Electron application, and I try to run the tests, but the test runner unexpectedly stops and gives me this error:
Error: worker process exited unexpectedly (code=7, signal=null)
node:internal/test_runner/harness:35
throw err;
^
Error: Process failed to launch!
at d:git_reposCVScover2020_sw_swsub_kibesserver_hostPackagesconfigurationeditornode_modulesplaywright-corelibserverelectronelectron.js:281:23
at new Promise (<anonymous>)
at waitForLine (d:git_reposCVScover2020_sw_swsub_kibesserver_hostPackagesconfigurationeditornode_modulesplaywright-corelibserverelectronelectron.js:277:10)
at d:git_reposCVScover2020_sw_swsub_kibesserver_hostPackagesconfigurationeditornode_modulesplaywright-corelibserverelectronelectron.js:232:34
at ProgressController.run (d:git_reposCVScover2020_sw_swsub_kibesserver_hostPackagesconfigurationeditornode_modulesplaywright-corelibserverprogress.js:82:22)
at ElectronDispatcher.launch (d:git_reposCVScover2020_sw_swsub_kibesserver_hostPackagesconfigurationeditornode_modulesplaywright-corelibserverdispatcherselectronDispatcher.js:34:33)
at LongStandingScope._race (d:git_reposCVScover2020_sw_swsub_kibesserver_hostPackagesconfigurationeditornode_modulesplaywright-corelibutilsmanualPromise.js:96:14)
at ElectronDispatcher._handleCommand (d:git_reposCVScover2020_sw_swsub_kibesserver_hostPackagesconfigurationeditornode_modulesplaywright-corelibserverdispatchersdispatcher.js:96:14)
at DispatcherConnection.dispatch (d:git_reposCVScover2020_sw_swsub_kibesserver_hostPackagesconfigurationeditornode_modulesplaywright-corelibserverdispatchersdispatcher.js:361:22)
Node.js v18.14.0
I have searched everywhere on the internet on this error. Does anyone else encounter this?
I tried to run the tests and expected them to run and not fail.
I reinstalled the playwright packages from NPM several times.
I removed the entries in the package.json and package-lock.json and reinstalled the packages from NPM.