@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.
- package/package.json +1 -1
- package/ts/test.ts +5 -6
package/package.json
CHANGED
package/ts/test.ts
CHANGED
|
@@ -17,8 +17,7 @@ interface TestOptions {
|
|
|
17
17
|
timeout?: string;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
|