@salesforce/cli-plugins-testkit 2.3.15 → 2.4.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.
package/lib/execCmd.d.ts CHANGED
@@ -61,7 +61,7 @@ export interface SfExecCmdResult<T = Collection> extends ExecCmdResult {
61
61
  *
62
62
  * Option defaults:
63
63
  * 1. `cwd` = process.cwd()
64
- * 2. `timeout` = 300000 (5 minutes)
64
+ * 2. `timeout` = 3,600,000 (1 hour)
65
65
  * 3. `env` = process.env
66
66
  * 4. `silent` = true (child process output not written to the console)
67
67
  *
@@ -87,7 +87,7 @@ export declare function execCmd<T = Collection>(cmd: string, options?: ExecCmdOp
87
87
  *
88
88
  * Option defaults:
89
89
  * 1. `cwd` = process.cwd()
90
- * 2. `timeout` = 300000 (5 minutes)
90
+ * 2. `timeout` = 3,600,000 (1 hour)
91
91
  * 3. `env` = process.env
92
92
  * 4. `silent` = true (child process output not written to the console)
93
93
  *
package/lib/execCmd.js CHANGED
@@ -23,7 +23,7 @@ const buildCmdOptions = (options) => {
23
23
  const defaults = {
24
24
  env: Object.assign({}, process.env),
25
25
  cwd: process.cwd(),
26
- timeout: 300000,
26
+ timeout: kit_1.Duration.hours(1).milliseconds,
27
27
  silent: true,
28
28
  };
29
29
  const shellOverride = kit_1.env.getString('TESTKIT_EXEC_SHELL');
@@ -66,7 +66,7 @@ const getExitCodeError = (cmd, expectedCode, output) => {
66
66
  */
67
67
  const buildCmd = (cmdArgs, options) => {
68
68
  const debug = (0, debug_1.default)('testkit:buildCmd');
69
- const bin = kit_1.env.getString('TESTKIT_EXECUTABLE_PATH') ?? (0, path_1.join)('bin', 'dev');
69
+ const bin = kit_1.env.getString('TESTKIT_EXECUTABLE_PATH') ?? (0, path_1.join)(process.cwd(), 'bin', 'dev');
70
70
  const which = shelljs.which(bin);
71
71
  let resolvedPath = (0, path_1.resolve)(bin);
72
72
  // If which finds the path in the system path, use that.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/cli-plugins-testkit",
3
3
  "description": "Provides test utilities to assist Salesforce CLI plug-in authors with writing non-unit tests (NUT).",
4
- "version": "2.3.15",
4
+ "version": "2.4.1",
5
5
  "author": "Salesforce",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "lib/index.js",