When karma-electron is symlinked into a project, the upward search path for node_modules folders may not include the application where we are running tests, therefore the tests will not be able to require dependencies because they won't be found.
I tried running karma with NODE_PATH=pwd/node_modules:$NODE_PATH karma ... in case this scenario happens (it isn't needed if karma-electron is under the project node_modules).
But this NODE_PATH does not propagate into the Electron instance.
Do you know how to set NODE_PATH (or something similar) for the Electron instance?
When karma-electron is symlinked into a project, the upward search path for
node_modulesfolders may not include the application where we are running tests, therefore the tests will not be able torequiredependencies because they won't be found.I tried running
karmawithNODE_PATH=pwd/node_modules:$NODE_PATH karma ...in case this scenario happens (it isn't needed if karma-electron is under the project node_modules).But this
NODE_PATHdoes not propagate into the Electron instance.Do you know how to set
NODE_PATH(or something similar) for the Electron instance?