@appthrust/kest 0.13.0 → 0.13.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/package.json +1 -1
  2. package/ts/test.ts +5 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appthrust/kest",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Kubernetes E2E testing framework designed for humans and AI alike",
5
5
  "type": "module",
6
6
  "module": "ts/index.ts",
package/ts/test.ts CHANGED
@@ -17,8 +17,7 @@ interface TestOptions {
17
17
  timeout?: string;
18
18
  }
19
19
 
20
- const defaultTimeout = 60_000;
21
- setDefaultTimeout(defaultTimeout);
20
+ setDefaultTimeout(60_000);
22
21
 
23
22
  type Callback = (scenario: Scenario) => Promise<unknown>;
24
23
 
@@ -98,12 +97,12 @@ function makeScenarioTest(runner: BunTestRunner): TestFunction {
98
97
  function convertTestOptions(
99
98
  options?: undefined | TestOptions
100
99
  ): undefined | BunTestOptions {
101
- const timeout = options?.timeout
102
- ? parseDuration(options.timeout).toMilliseconds()
103
- : defaultTimeout;
100
+ if (!options?.timeout) {
101
+ return undefined;
102
+ }
104
103
  return {
105
104
  ...options,
106
- timeout,
105
+ timeout: parseDuration(options.timeout).toMilliseconds(),
107
106
  };
108
107
  }
109
108