@brillout/test-e2e 0.4.10 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/setup.js +7 -2
  2. package/package.json +1 -1
package/dist/setup.js CHANGED
@@ -254,8 +254,13 @@ function stopProcess({ proc, cwd, cmd, force, }) {
254
254
  // There doesn't seem to be an option to suppress these errors: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/taskkill#parameters
255
255
  (0, child_process_1.spawn)('taskkill', ['/pid', String(proc.pid), '/f', '/t'], {
256
256
  stdio: [
257
- 'inherit',
258
- 'inherit',
257
+ 'ignore',
258
+ // Ignore:
259
+ // ```
260
+ // SUCCESS: The process with PID 6932 (child process of PID 2744) has been terminated.
261
+ // ```
262
+ // (Setting 'inherit' instead of 'ignore' attaches stdout to the root process and not to `proc` which is why the stdout of taskkill isn't intercepted by `proc.stdout.on('data', () => /* ... */)`.
263
+ 'ignore',
259
264
  // Ignoring stderr doesn't solve the problem that taskkill makes the process exit with code 1
260
265
  'inherit', // stderr
261
266
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/test-e2e",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "bin": "./bin.js",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {