Skip to content

Commit

Permalink
Use process.execPath is the test runner (#751)
Browse files Browse the repository at this point in the history
Use process.execPath instead of 'node' so we use the same Node executable that is running ember-cli, rather than rely on the user's PATH to point to the right (or any) version of Node.

Thanks @rwjblue for pointing this out

Fixes #750
  • Loading branch information
Ben Demboski authored Mar 3, 2021
1 parent 98e9237 commit 65b43e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//

module.exports = {
exe: 'node',
exe: process.execPath,
// These arguments are used in `lib/test-support/index.js`, which is called
// from the test main process (via the blueprint-generated
// `electron-app/tests/index.js`)
Expand Down

0 comments on commit 65b43e4

Please sign in to comment.