first-base 3.0.0 → 3.0.1

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/index.js +8 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -263,6 +263,14 @@ function spawn(cmd, argsOrOptions, passedOptions) {
263
263
  if (code != null) {
264
264
  runContext.result.code = code;
265
265
  }
266
+ debugLog("NOTE: 'exit' event doesn't resolve completion. Waiting for 'close' event.");
267
+ });
268
+ debugLog("using 'on' method to listen for child close event");
269
+ child.on("close", (code) => {
270
+ debugLog("'close' event", { code });
271
+ if (code != null) {
272
+ runContext.result.code = code;
273
+ }
266
274
  finish("exited");
267
275
  });
268
276
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "first-base",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Integration testing for CLI applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",