Skip to content

test: quote process.execPath and fixture path to support paths with spaces - #5549

Closed
bhumin18 wants to merge 1 commit into
socketio:mainfrom
bhumin18:fix/test-fixture-quoting
Closed

bhumin18 wants to merge 1 commit into
socketio:mainfrom
bhumin18:fix/test-fixture-quoting

Conversation

@bhumin18

Copy link
Copy Markdown
Contributor

Description

Quotes process.execPath and fixture paths when invoking child processes in test suites across engine.io, engine.io-client, and socket.io-client.

Motivation

When tests run on environments where Node.js or the project folder path contains spaces (such as the Windows default C:\Program Files\nodejs\node.exe or directories with spaces), child_process.exec() fails with 'C:\Program' is not recognized as an internal or external command.

Quoting the paths fixes this issue and aligns these packages with packages/socket.io/test/close.ts.

Checklist

  • Prettier code style verified (npm run format:check)
  • Tests passing across engine.io, engine.io-client, and socket.io-client

@bhumin18

Copy link
Copy Markdown
Contributor Author

Hi @darrachequesne, all automated CI checks have passed successfully. Whenever you have some time to review, let me know if any further tweaks are needed. Thanks!

Comment thread packages/engine.io-client/test/node.js
darrachequesne pushed a commit that referenced this pull request Sep 11, 2026
Avoid shell parsing issues when Node.js or project paths contain spaces,
such as "C:\Program Files\nodejs\node.exe" on Windows.
@darrachequesne

Copy link
Copy Markdown
Member

Merged as 551a3dc. Thanks a lot 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants