testdouble / teenytest

A very simple, zero-config test runner for Node.js
MIT License
96 stars 14 forks source link

ci: use bash shell when spawning tests on windows #74

Closed webstech closed 1 year ago

webstech commented 1 year ago

Some spawned tests expect to be running in a UNIX environment (shebang checking for example). When spawning tests on Windows, the shell will now be bash. It is expected that maintainers will have bash available (it may be git bash).

Spawned processes will now find the command to run instead of getting ENOENT errors. The shell: true option on spawn does not resolve the need for shebang support.