Skip to content

Commit 1c6d0fa

Browse files
committed
Adding quotes... just in case there are spaces
This isn't a perfect escape, but it's just for test paths
1 parent 9a859d4 commit 1c6d0fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/bin/encore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = Encore.getWebpackConfig();
3939
);
4040

4141
const binPath = path.resolve(__dirname, '../', '../', 'bin', 'encore.js');
42-
exec(`node ${binPath} dev --context=${testDir}`, { cwd: testDir }, (err, stdout, stderr) => {
42+
exec(`node '${binPath}' dev --context='${testDir}'`, { cwd: testDir }, (err, stdout, stderr) => {
4343
if (err) {
4444
throw new Error(`Error executing encore: ${err} ${stderr} ${stdout}`);
4545
}

0 commit comments

Comments
 (0)