@types/k6 1.1.0 → 1.1.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 (3) hide show
  1. k6/README.md +1 -1
  2. k6/execution/index.d.ts +13 -1
  3. k6/package.json +2 -2
k6/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for k6 (https://grafana.com/docs/k6/lates
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 01 Jul 2025 22:02:09 GMT
11
+ * Last updated: Mon, 07 Jul 2025 08:41:04 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
k6/execution/index.d.ts CHANGED
@@ -62,7 +62,7 @@ export const instance: {
62
62
  export const test: {
63
63
  /**
64
64
  * Aborts the test run with the exit code 108.
65
- * https://grafana.com/docs/k6/latest/javascript-api/k6-execution/#test
65
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-execution/#test-abort
66
66
  * @param input - Aborted message.
67
67
  * @example
68
68
  * import exec from "k6/execution";
@@ -71,6 +71,18 @@ export const test: {
71
71
  */
72
72
  abort(input?: string): void;
73
73
 
74
+ /**
75
+ * Marks the test as failed with the exit code 110, without interrupting execution.
76
+ * This allows all iterations to complete while reporting the run as failed.
77
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-execution/#test-fail
78
+ * @param message - Failure reason.
79
+ * @example
80
+ * import exec from "k6/execution";
81
+ * exec.test.fail();
82
+ * exec.test.fail('this is the reason');
83
+ */
84
+ fail(message?: string): void;
85
+
74
86
  options: Options;
75
87
  };
76
88
 
k6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/k6",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "TypeScript definitions for k6",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
6
6
  "license": "MIT",
@@ -69,6 +69,6 @@
69
69
  "scripts": {},
70
70
  "dependencies": {},
71
71
  "peerDependencies": {},
72
- "typesPublisherContentHash": "96515089683437758fefd2c656f0f92f85fe68f378af7dbdfaad6cf5321acd13",
72
+ "typesPublisherContentHash": "cab96a60a1aff1fc779fe38bef4441c8b03f85e11e14c181e7a5e23e146b7e64",
73
73
  "typeScriptVersion": "5.1"
74
74
  }