@types/node 20.6.5 → 20.7.0
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.
- node/README.md +1 -1
- node/console.d.ts +10 -7
- node/events.d.ts +1 -1
- node/index.d.ts +1 -1
- node/module.d.ts +29 -0
- node/net.d.ts +12 -0
- node/package.json +2 -2
- node/process.d.ts +8 -1
- node/string_decoder.d.ts +5 -5
- node/test.d.ts +25 -114
- node/ts4.8/console.d.ts +10 -7
- node/ts4.8/module.d.ts +1 -0
- node/ts4.8/process.d.ts +8 -1
- node/ts4.8/string_decoder.d.ts +5 -5
- node/ts4.8/test.d.ts +26 -115
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 25 Sep 2023 20:06:16 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node/console.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ declare module "node:console" {
|
|
|
123
123
|
* >
|
|
124
124
|
* ```
|
|
125
125
|
* @since v8.3.0
|
|
126
|
-
* @param label The display label for the counter.
|
|
126
|
+
* @param [label='default'] The display label for the counter.
|
|
127
127
|
*/
|
|
128
128
|
count(label?: string): void;
|
|
129
129
|
/**
|
|
@@ -141,7 +141,7 @@ declare module "node:console" {
|
|
|
141
141
|
* >
|
|
142
142
|
* ```
|
|
143
143
|
* @since v8.3.0
|
|
144
|
-
* @param label The display label for the counter.
|
|
144
|
+
* @param [label='default'] The display label for the counter.
|
|
145
145
|
*/
|
|
146
146
|
countReset(label?: string): void;
|
|
147
147
|
/**
|
|
@@ -221,7 +221,7 @@ declare module "node:console" {
|
|
|
221
221
|
log(message?: any, ...optionalParams: any[]): void;
|
|
222
222
|
/**
|
|
223
223
|
* Try to construct a table with the columns of the properties of `tabularData`(or use `properties`) and rows of `tabularData` and log it. Falls back to just
|
|
224
|
-
* logging the argument if it can
|
|
224
|
+
* logging the argument if it can't be parsed as tabular.
|
|
225
225
|
*
|
|
226
226
|
* ```js
|
|
227
227
|
* // These can't be parsed as tabular data
|
|
@@ -257,6 +257,7 @@ declare module "node:console" {
|
|
|
257
257
|
* suitable time units to `stdout`. For example, if the elapsed
|
|
258
258
|
* time is 3869ms, `console.timeEnd()` displays "3.869s".
|
|
259
259
|
* @since v0.1.104
|
|
260
|
+
* @param [label='default']
|
|
260
261
|
*/
|
|
261
262
|
time(label?: string): void;
|
|
262
263
|
/**
|
|
@@ -264,12 +265,13 @@ declare module "node:console" {
|
|
|
264
265
|
* prints the result to `stdout`:
|
|
265
266
|
*
|
|
266
267
|
* ```js
|
|
267
|
-
* console.time('
|
|
268
|
-
*
|
|
269
|
-
* console.timeEnd('
|
|
270
|
-
* //
|
|
268
|
+
* console.time('bunch-of-stuff');
|
|
269
|
+
* // Do a bunch of stuff.
|
|
270
|
+
* console.timeEnd('bunch-of-stuff');
|
|
271
|
+
* // Prints: bunch-of-stuff: 225.438ms
|
|
271
272
|
* ```
|
|
272
273
|
* @since v0.1.104
|
|
274
|
+
* @param [label='default']
|
|
273
275
|
*/
|
|
274
276
|
timeEnd(label?: string): void;
|
|
275
277
|
/**
|
|
@@ -285,6 +287,7 @@ declare module "node:console" {
|
|
|
285
287
|
* console.timeEnd('process');
|
|
286
288
|
* ```
|
|
287
289
|
* @since v10.7.0
|
|
290
|
+
* @param [label='default']
|
|
288
291
|
*/
|
|
289
292
|
timeLog(label?: string, ...data: any[]): void;
|
|
290
293
|
/**
|
node/events.d.ts
CHANGED
|
@@ -378,7 +378,7 @@ declare module "events" {
|
|
|
378
378
|
* ```
|
|
379
379
|
* @since v20.5.0
|
|
380
380
|
* @experimental
|
|
381
|
-
* @return that removes the `abort` listener.
|
|
381
|
+
* @return Disposable that removes the `abort` listener.
|
|
382
382
|
*/
|
|
383
383
|
static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable;
|
|
384
384
|
/**
|
node/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for non-npm package Node.js 20.
|
|
1
|
+
// Type definitions for non-npm package Node.js 20.7
|
|
2
2
|
// Project: https://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
node/module.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since v0.3.7
|
|
3
|
+
* @experimental
|
|
3
4
|
*/
|
|
4
5
|
declare module "module" {
|
|
5
6
|
import { URL } from "node:url";
|
|
@@ -64,6 +65,24 @@ declare module "module" {
|
|
|
64
65
|
originalLine: number;
|
|
65
66
|
originalColumn: number;
|
|
66
67
|
}
|
|
68
|
+
interface SourceOrigin {
|
|
69
|
+
/**
|
|
70
|
+
* The name of the range in the source map, if one was provided
|
|
71
|
+
*/
|
|
72
|
+
name?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The file name of the original source, as reported in the SourceMap
|
|
75
|
+
*/
|
|
76
|
+
fileName: string;
|
|
77
|
+
/**
|
|
78
|
+
* The 1-indexed lineNumber of the corresponding call site in the original source
|
|
79
|
+
*/
|
|
80
|
+
lineNumber: number;
|
|
81
|
+
/**
|
|
82
|
+
* The 1-indexed columnNumber of the corresponding call site in the original source
|
|
83
|
+
*/
|
|
84
|
+
columnNumber: number;
|
|
85
|
+
}
|
|
67
86
|
/**
|
|
68
87
|
* @since v13.7.0, v12.17.0
|
|
69
88
|
*/
|
|
@@ -92,6 +111,16 @@ declare module "module" {
|
|
|
92
111
|
* @param columnOffset The zero-indexed column number offset in the generated source
|
|
93
112
|
*/
|
|
94
113
|
findEntry(lineOffset: number, columnOffset: number): SourceMapping;
|
|
114
|
+
/**
|
|
115
|
+
* Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source,
|
|
116
|
+
* find the corresponding call site location in the original source.
|
|
117
|
+
*
|
|
118
|
+
* If the `lineNumber` and `columnNumber` provided are not found in any source map,
|
|
119
|
+
* then an empty object is returned.
|
|
120
|
+
* @param lineNumber The 1-indexed line number of the call site in the generated source
|
|
121
|
+
* @param columnNumber The 1-indexed column number of the call site in the generated source
|
|
122
|
+
*/
|
|
123
|
+
findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {};
|
|
95
124
|
}
|
|
96
125
|
interface ImportAssertions extends NodeJS.Dict<string> {
|
|
97
126
|
type?: string | undefined;
|
node/net.d.ts
CHANGED
|
@@ -234,6 +234,14 @@ declare module "net" {
|
|
|
234
234
|
* @return The socket itself.
|
|
235
235
|
*/
|
|
236
236
|
ref(): this;
|
|
237
|
+
/**
|
|
238
|
+
* This property is only present if the family autoselection algorithm is enabled in `socket.connect(options)`
|
|
239
|
+
* and it is an array of the addresses that have been attempted.
|
|
240
|
+
*
|
|
241
|
+
* Each address is a string in the form of `$IP:$PORT`.
|
|
242
|
+
* If the connection was successful, then the last address is the one that the socket is currently connected to.
|
|
243
|
+
*/
|
|
244
|
+
readonly autoSelectFamilyAttemptedAddresses: string[];
|
|
237
245
|
/**
|
|
238
246
|
* This property shows the number of characters buffered for writing. The buffer
|
|
239
247
|
* may contain strings whose length after encoding is not yet known. So this number
|
|
@@ -824,6 +832,10 @@ declare module "net" {
|
|
|
824
832
|
function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket;
|
|
825
833
|
function createConnection(port: number, host?: string, connectionListener?: () => void): Socket;
|
|
826
834
|
function createConnection(path: string, connectionListener?: () => void): Socket;
|
|
835
|
+
function getDefaultAutoSelectFamily(): boolean;
|
|
836
|
+
function setDefaultAutoSelectFamily(value: boolean): void;
|
|
837
|
+
function getDefaultAutoSelectFamilyAttemptTimeout(): number;
|
|
838
|
+
function setDefaultAutoSelectFamilyAttemptTimeout(value: number): void;
|
|
827
839
|
/**
|
|
828
840
|
* Returns `6` if `input` is an IPv6 address. Returns `4` if `input` is an IPv4
|
|
829
841
|
* address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no leading zeroes. Otherwise, returns`0`.
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.7.0",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -227,6 +227,6 @@
|
|
|
227
227
|
},
|
|
228
228
|
"scripts": {},
|
|
229
229
|
"dependencies": {},
|
|
230
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "02e6eee96dee00f7665189477238754d8cd9a414b7a5a0985afb2e3f140c58ad",
|
|
231
231
|
"typeScriptVersion": "4.5"
|
|
232
232
|
}
|
node/process.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ declare module "process" {
|
|
|
68
68
|
| "mipsel"
|
|
69
69
|
| "ppc"
|
|
70
70
|
| "ppc64"
|
|
71
|
+
| "riscv64"
|
|
71
72
|
| "s390"
|
|
72
73
|
| "s390x"
|
|
73
74
|
| "x64";
|
|
@@ -895,6 +896,12 @@ declare module "process" {
|
|
|
895
896
|
* @since v9.3.0
|
|
896
897
|
*/
|
|
897
898
|
hasUncaughtExceptionCaptureCallback(): boolean;
|
|
899
|
+
/**
|
|
900
|
+
* The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled.
|
|
901
|
+
* @since v20.7.0
|
|
902
|
+
* @experimental
|
|
903
|
+
*/
|
|
904
|
+
readonly sourceMapsEnabled: boolean;
|
|
898
905
|
/**
|
|
899
906
|
* The `process.version` property contains the Node.js version string.
|
|
900
907
|
*
|
|
@@ -1068,7 +1075,7 @@ declare module "process" {
|
|
|
1068
1075
|
title: string;
|
|
1069
1076
|
/**
|
|
1070
1077
|
* The operating system CPU architecture for which the Node.js binary was compiled.
|
|
1071
|
-
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`.
|
|
1078
|
+
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
|
|
1072
1079
|
*
|
|
1073
1080
|
* ```js
|
|
1074
1081
|
* import { arch } from 'node:process';
|
node/string_decoder.d.ts
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* const decoder = new StringDecoder('utf8');
|
|
15
15
|
*
|
|
16
16
|
* const cent = Buffer.from([0xC2, 0xA2]);
|
|
17
|
-
* console.log(decoder.write(cent));
|
|
17
|
+
* console.log(decoder.write(cent)); // Prints: ¢
|
|
18
18
|
*
|
|
19
19
|
* const euro = Buffer.from([0xE2, 0x82, 0xAC]);
|
|
20
|
-
* console.log(decoder.write(euro));
|
|
20
|
+
* console.log(decoder.write(euro)); // Prints: €
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
23
|
* When a `Buffer` instance is written to the `StringDecoder` instance, an
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
*
|
|
35
35
|
* decoder.write(Buffer.from([0xE2]));
|
|
36
36
|
* decoder.write(Buffer.from([0x82]));
|
|
37
|
-
* console.log(decoder.end(Buffer.from([0xAC])));
|
|
37
|
+
* console.log(decoder.end(Buffer.from([0xAC]))); // Prints: €
|
|
38
38
|
* ```
|
|
39
39
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/string_decoder.js)
|
|
40
40
|
*/
|
|
@@ -46,7 +46,7 @@ declare module "string_decoder" {
|
|
|
46
46
|
* the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the
|
|
47
47
|
* returned string and stored in an internal buffer for the next call to`stringDecoder.write()` or `stringDecoder.end()`.
|
|
48
48
|
* @since v0.1.99
|
|
49
|
-
* @param buffer
|
|
49
|
+
* @param buffer The bytes to decode.
|
|
50
50
|
*/
|
|
51
51
|
write(buffer: Buffer): string;
|
|
52
52
|
/**
|
|
@@ -57,7 +57,7 @@ declare module "string_decoder" {
|
|
|
57
57
|
* If the `buffer` argument is provided, one final call to `stringDecoder.write()`is performed before returning the remaining input.
|
|
58
58
|
* After `end()` is called, the `stringDecoder` object can be reused for new input.
|
|
59
59
|
* @since v0.9.3
|
|
60
|
-
* @param buffer
|
|
60
|
+
* @param buffer The bytes to decode.
|
|
61
61
|
*/
|
|
62
62
|
end(buffer?: Buffer): string;
|
|
63
63
|
}
|
node/test.d.ts
CHANGED
|
@@ -1026,11 +1026,6 @@ declare module "node:test" {
|
|
|
1026
1026
|
* mock.timers.enable(['setInterval']);
|
|
1027
1027
|
* ```
|
|
1028
1028
|
*
|
|
1029
|
-
* ```js
|
|
1030
|
-
* const { mock } = require('node:test');
|
|
1031
|
-
* mock.timers.enable(['setInterval']);
|
|
1032
|
-
* ```
|
|
1033
|
-
*
|
|
1034
1029
|
* The above example enables mocking for the `setInterval` timer and
|
|
1035
1030
|
* implicitly mocks the `clearInterval` function. Only the `setInterval`and `clearInterval` functions from `node:timers`,`node:timers/promises`, and`globalThis` will be mocked.
|
|
1036
1031
|
*
|
|
@@ -1054,11 +1049,6 @@ declare module "node:test" {
|
|
|
1054
1049
|
* import { mock } from 'node:test';
|
|
1055
1050
|
* mock.timers.reset();
|
|
1056
1051
|
* ```
|
|
1057
|
-
*
|
|
1058
|
-
* ```js
|
|
1059
|
-
* const { mock } = require('node:test');
|
|
1060
|
-
* mock.timers.reset();
|
|
1061
|
-
* ```
|
|
1062
1052
|
* @since v20.4.0
|
|
1063
1053
|
*/
|
|
1064
1054
|
reset(): void;
|
|
@@ -1093,24 +1083,6 @@ declare module "node:test" {
|
|
|
1093
1083
|
* });
|
|
1094
1084
|
* ```
|
|
1095
1085
|
*
|
|
1096
|
-
* ```js
|
|
1097
|
-
* const assert = require('node:assert');
|
|
1098
|
-
* const { test } = require('node:test');
|
|
1099
|
-
*
|
|
1100
|
-
* test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => {
|
|
1101
|
-
* const fn = context.mock.fn();
|
|
1102
|
-
* context.mock.timers.enable(['setTimeout']);
|
|
1103
|
-
*
|
|
1104
|
-
* setTimeout(fn, 9999);
|
|
1105
|
-
* assert.strictEqual(fn.mock.callCount(), 0);
|
|
1106
|
-
*
|
|
1107
|
-
* // Advance in time
|
|
1108
|
-
* context.mock.timers.tick(9999);
|
|
1109
|
-
*
|
|
1110
|
-
* assert.strictEqual(fn.mock.callCount(), 1);
|
|
1111
|
-
* });
|
|
1112
|
-
* ```
|
|
1113
|
-
*
|
|
1114
1086
|
* Alternativelly, the `.tick` function can be called many times
|
|
1115
1087
|
*
|
|
1116
1088
|
* ```js
|
|
@@ -1131,25 +1103,6 @@ declare module "node:test" {
|
|
|
1131
1103
|
* assert.strictEqual(fn.mock.callCount(), 1);
|
|
1132
1104
|
* });
|
|
1133
1105
|
* ```
|
|
1134
|
-
*
|
|
1135
|
-
* ```js
|
|
1136
|
-
* const assert = require('node:assert');
|
|
1137
|
-
* const { test } = require('node:test');
|
|
1138
|
-
*
|
|
1139
|
-
* test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => {
|
|
1140
|
-
* const fn = context.mock.fn();
|
|
1141
|
-
* context.mock.timers.enable(['setTimeout']);
|
|
1142
|
-
* const nineSecs = 9000;
|
|
1143
|
-
* setTimeout(fn, nineSecs);
|
|
1144
|
-
*
|
|
1145
|
-
* const twoSeconds = 3000;
|
|
1146
|
-
* context.mock.timers.tick(twoSeconds);
|
|
1147
|
-
* context.mock.timers.tick(twoSeconds);
|
|
1148
|
-
* context.mock.timers.tick(twoSeconds);
|
|
1149
|
-
*
|
|
1150
|
-
* assert.strictEqual(fn.mock.callCount(), 1);
|
|
1151
|
-
* });
|
|
1152
|
-
* ```
|
|
1153
1106
|
* @since v20.4.0
|
|
1154
1107
|
*/
|
|
1155
1108
|
tick(milliseconds: number): void;
|
|
@@ -1181,28 +1134,6 @@ declare module "node:test" {
|
|
|
1181
1134
|
* });
|
|
1182
1135
|
* ```
|
|
1183
1136
|
*
|
|
1184
|
-
* ```js
|
|
1185
|
-
* const assert = require('node:assert');
|
|
1186
|
-
* const { test } = require('node:test');
|
|
1187
|
-
*
|
|
1188
|
-
* test('runAll functions following the given order', (context) => {
|
|
1189
|
-
* context.mock.timers.enable(['setTimeout']);
|
|
1190
|
-
* const results = [];
|
|
1191
|
-
* setTimeout(() => results.push(1), 9999);
|
|
1192
|
-
*
|
|
1193
|
-
* // Notice that if both timers have the same timeout,
|
|
1194
|
-
* // the order of execution is guaranteed
|
|
1195
|
-
* setTimeout(() => results.push(3), 8888);
|
|
1196
|
-
* setTimeout(() => results.push(2), 8888);
|
|
1197
|
-
*
|
|
1198
|
-
* assert.deepStrictEqual(results, []);
|
|
1199
|
-
*
|
|
1200
|
-
* context.mock.timers.runAll();
|
|
1201
|
-
*
|
|
1202
|
-
* assert.deepStrictEqual(results, [3, 2, 1]);
|
|
1203
|
-
* });
|
|
1204
|
-
* ```
|
|
1205
|
-
*
|
|
1206
1137
|
* **Note:** The `runAll()` function is specifically designed for
|
|
1207
1138
|
* triggering timers in the context of timer mocking.
|
|
1208
1139
|
* It does not have any effect on real-time system
|
|
@@ -1218,7 +1149,23 @@ declare module "node:test" {
|
|
|
1218
1149
|
export { after, afterEach, before, beforeEach, describe, it, mock, only, run, skip, test, test as default, todo, Mock };
|
|
1219
1150
|
}
|
|
1220
1151
|
|
|
1221
|
-
interface
|
|
1152
|
+
interface TestLocationInfo {
|
|
1153
|
+
/**
|
|
1154
|
+
* The column number where the test is defined, or
|
|
1155
|
+
* `undefined` if the test was run through the REPL.
|
|
1156
|
+
*/
|
|
1157
|
+
column?: number;
|
|
1158
|
+
/**
|
|
1159
|
+
* The path of the test file, `undefined` if test is not ran through a file.
|
|
1160
|
+
*/
|
|
1161
|
+
file?: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* The line number where the test is defined, or
|
|
1164
|
+
* `undefined` if the test was run through the REPL.
|
|
1165
|
+
*/
|
|
1166
|
+
line?: number;
|
|
1167
|
+
}
|
|
1168
|
+
interface DiagnosticData extends TestLocationInfo {
|
|
1222
1169
|
/**
|
|
1223
1170
|
* The diagnostic message.
|
|
1224
1171
|
*/
|
|
@@ -1227,12 +1174,8 @@ interface DiagnosticData {
|
|
|
1227
1174
|
* The nesting level of the test.
|
|
1228
1175
|
*/
|
|
1229
1176
|
nesting: number;
|
|
1230
|
-
/**
|
|
1231
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1232
|
-
*/
|
|
1233
|
-
file?: string;
|
|
1234
1177
|
}
|
|
1235
|
-
interface TestFail {
|
|
1178
|
+
interface TestFail extends TestLocationInfo {
|
|
1236
1179
|
/**
|
|
1237
1180
|
* Additional execution metadata.
|
|
1238
1181
|
*/
|
|
@@ -1271,12 +1214,8 @@ interface TestFail {
|
|
|
1271
1214
|
* Present if `context.skip` is called.
|
|
1272
1215
|
*/
|
|
1273
1216
|
skip?: string | boolean;
|
|
1274
|
-
/**
|
|
1275
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1276
|
-
*/
|
|
1277
|
-
file?: string;
|
|
1278
1217
|
}
|
|
1279
|
-
interface TestPass {
|
|
1218
|
+
interface TestPass extends TestLocationInfo {
|
|
1280
1219
|
/**
|
|
1281
1220
|
* Additional execution metadata.
|
|
1282
1221
|
*/
|
|
@@ -1311,12 +1250,8 @@ interface TestPass {
|
|
|
1311
1250
|
* Present if `context.skip` is called.
|
|
1312
1251
|
*/
|
|
1313
1252
|
skip?: string | boolean;
|
|
1314
|
-
/**
|
|
1315
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1316
|
-
*/
|
|
1317
|
-
file?: string;
|
|
1318
1253
|
}
|
|
1319
|
-
interface TestPlan {
|
|
1254
|
+
interface TestPlan extends TestLocationInfo {
|
|
1320
1255
|
/**
|
|
1321
1256
|
* The nesting level of the test.
|
|
1322
1257
|
*/
|
|
@@ -1325,12 +1260,8 @@ interface TestPlan {
|
|
|
1325
1260
|
* The number of subtests that have ran.
|
|
1326
1261
|
*/
|
|
1327
1262
|
count: number;
|
|
1328
|
-
/**
|
|
1329
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1330
|
-
*/
|
|
1331
|
-
file?: string;
|
|
1332
1263
|
}
|
|
1333
|
-
interface TestStart {
|
|
1264
|
+
interface TestStart extends TestLocationInfo {
|
|
1334
1265
|
/**
|
|
1335
1266
|
* The test name.
|
|
1336
1267
|
*/
|
|
@@ -1339,54 +1270,34 @@ interface TestStart {
|
|
|
1339
1270
|
* The nesting level of the test.
|
|
1340
1271
|
*/
|
|
1341
1272
|
nesting: number;
|
|
1342
|
-
/**
|
|
1343
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1344
|
-
*/
|
|
1345
|
-
file?: string;
|
|
1346
1273
|
}
|
|
1347
|
-
interface TestStderr {
|
|
1348
|
-
/**
|
|
1349
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1350
|
-
*/
|
|
1351
|
-
file?: string;
|
|
1274
|
+
interface TestStderr extends TestLocationInfo {
|
|
1352
1275
|
/**
|
|
1353
1276
|
* The message written to `stderr`
|
|
1354
1277
|
*/
|
|
1355
1278
|
message: string;
|
|
1356
1279
|
}
|
|
1357
|
-
interface TestStdout {
|
|
1358
|
-
/**
|
|
1359
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1360
|
-
*/
|
|
1361
|
-
file?: string;
|
|
1280
|
+
interface TestStdout extends TestLocationInfo {
|
|
1362
1281
|
/**
|
|
1363
1282
|
* The message written to `stdout`
|
|
1364
1283
|
*/
|
|
1365
1284
|
message: string;
|
|
1366
1285
|
}
|
|
1367
|
-
interface TestEnqueue {
|
|
1286
|
+
interface TestEnqueue extends TestLocationInfo {
|
|
1368
1287
|
/**
|
|
1369
1288
|
* The test name
|
|
1370
1289
|
*/
|
|
1371
1290
|
name: string;
|
|
1372
|
-
/**
|
|
1373
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1374
|
-
*/
|
|
1375
|
-
file?: string;
|
|
1376
1291
|
/**
|
|
1377
1292
|
* The nesting level of the test.
|
|
1378
1293
|
*/
|
|
1379
1294
|
nesting: number;
|
|
1380
1295
|
}
|
|
1381
|
-
interface TestDequeue {
|
|
1296
|
+
interface TestDequeue extends TestLocationInfo {
|
|
1382
1297
|
/**
|
|
1383
1298
|
* The test name
|
|
1384
1299
|
*/
|
|
1385
1300
|
name: string;
|
|
1386
|
-
/**
|
|
1387
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1388
|
-
*/
|
|
1389
|
-
file?: string;
|
|
1390
1301
|
/**
|
|
1391
1302
|
* The nesting level of the test.
|
|
1392
1303
|
*/
|
node/ts4.8/console.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ declare module "node:console" {
|
|
|
123
123
|
* >
|
|
124
124
|
* ```
|
|
125
125
|
* @since v8.3.0
|
|
126
|
-
* @param label The display label for the counter.
|
|
126
|
+
* @param [label='default'] The display label for the counter.
|
|
127
127
|
*/
|
|
128
128
|
count(label?: string): void;
|
|
129
129
|
/**
|
|
@@ -141,7 +141,7 @@ declare module "node:console" {
|
|
|
141
141
|
* >
|
|
142
142
|
* ```
|
|
143
143
|
* @since v8.3.0
|
|
144
|
-
* @param label The display label for the counter.
|
|
144
|
+
* @param [label='default'] The display label for the counter.
|
|
145
145
|
*/
|
|
146
146
|
countReset(label?: string): void;
|
|
147
147
|
/**
|
|
@@ -221,7 +221,7 @@ declare module "node:console" {
|
|
|
221
221
|
log(message?: any, ...optionalParams: any[]): void;
|
|
222
222
|
/**
|
|
223
223
|
* Try to construct a table with the columns of the properties of `tabularData`(or use `properties`) and rows of `tabularData` and log it. Falls back to just
|
|
224
|
-
* logging the argument if it can
|
|
224
|
+
* logging the argument if it can't be parsed as tabular.
|
|
225
225
|
*
|
|
226
226
|
* ```js
|
|
227
227
|
* // These can't be parsed as tabular data
|
|
@@ -257,6 +257,7 @@ declare module "node:console" {
|
|
|
257
257
|
* suitable time units to `stdout`. For example, if the elapsed
|
|
258
258
|
* time is 3869ms, `console.timeEnd()` displays "3.869s".
|
|
259
259
|
* @since v0.1.104
|
|
260
|
+
* @param [label='default']
|
|
260
261
|
*/
|
|
261
262
|
time(label?: string): void;
|
|
262
263
|
/**
|
|
@@ -264,12 +265,13 @@ declare module "node:console" {
|
|
|
264
265
|
* prints the result to `stdout`:
|
|
265
266
|
*
|
|
266
267
|
* ```js
|
|
267
|
-
* console.time('
|
|
268
|
-
*
|
|
269
|
-
* console.timeEnd('
|
|
270
|
-
* //
|
|
268
|
+
* console.time('bunch-of-stuff');
|
|
269
|
+
* // Do a bunch of stuff.
|
|
270
|
+
* console.timeEnd('bunch-of-stuff');
|
|
271
|
+
* // Prints: bunch-of-stuff: 225.438ms
|
|
271
272
|
* ```
|
|
272
273
|
* @since v0.1.104
|
|
274
|
+
* @param [label='default']
|
|
273
275
|
*/
|
|
274
276
|
timeEnd(label?: string): void;
|
|
275
277
|
/**
|
|
@@ -285,6 +287,7 @@ declare module "node:console" {
|
|
|
285
287
|
* console.timeEnd('process');
|
|
286
288
|
* ```
|
|
287
289
|
* @since v10.7.0
|
|
290
|
+
* @param [label='default']
|
|
288
291
|
*/
|
|
289
292
|
timeLog(label?: string, ...data: any[]): void;
|
|
290
293
|
/**
|
node/ts4.8/module.d.ts
CHANGED
node/ts4.8/process.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ declare module "process" {
|
|
|
68
68
|
| "mipsel"
|
|
69
69
|
| "ppc"
|
|
70
70
|
| "ppc64"
|
|
71
|
+
| "riscv64"
|
|
71
72
|
| "s390"
|
|
72
73
|
| "s390x"
|
|
73
74
|
| "x64";
|
|
@@ -895,6 +896,12 @@ declare module "process" {
|
|
|
895
896
|
* @since v9.3.0
|
|
896
897
|
*/
|
|
897
898
|
hasUncaughtExceptionCaptureCallback(): boolean;
|
|
899
|
+
/**
|
|
900
|
+
* The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled.
|
|
901
|
+
* @since v20.7.0
|
|
902
|
+
* @experimental
|
|
903
|
+
*/
|
|
904
|
+
readonly sourceMapsEnabled: boolean;
|
|
898
905
|
/**
|
|
899
906
|
* The `process.version` property contains the Node.js version string.
|
|
900
907
|
*
|
|
@@ -1068,7 +1075,7 @@ declare module "process" {
|
|
|
1068
1075
|
title: string;
|
|
1069
1076
|
/**
|
|
1070
1077
|
* The operating system CPU architecture for which the Node.js binary was compiled.
|
|
1071
|
-
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`.
|
|
1078
|
+
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
|
|
1072
1079
|
*
|
|
1073
1080
|
* ```js
|
|
1074
1081
|
* import { arch } from 'node:process';
|
node/ts4.8/string_decoder.d.ts
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* const decoder = new StringDecoder('utf8');
|
|
15
15
|
*
|
|
16
16
|
* const cent = Buffer.from([0xC2, 0xA2]);
|
|
17
|
-
* console.log(decoder.write(cent));
|
|
17
|
+
* console.log(decoder.write(cent)); // Prints: ¢
|
|
18
18
|
*
|
|
19
19
|
* const euro = Buffer.from([0xE2, 0x82, 0xAC]);
|
|
20
|
-
* console.log(decoder.write(euro));
|
|
20
|
+
* console.log(decoder.write(euro)); // Prints: €
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
23
|
* When a `Buffer` instance is written to the `StringDecoder` instance, an
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
*
|
|
35
35
|
* decoder.write(Buffer.from([0xE2]));
|
|
36
36
|
* decoder.write(Buffer.from([0x82]));
|
|
37
|
-
* console.log(decoder.end(Buffer.from([0xAC])));
|
|
37
|
+
* console.log(decoder.end(Buffer.from([0xAC]))); // Prints: €
|
|
38
38
|
* ```
|
|
39
39
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/string_decoder.js)
|
|
40
40
|
*/
|
|
@@ -46,7 +46,7 @@ declare module "string_decoder" {
|
|
|
46
46
|
* the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the
|
|
47
47
|
* returned string and stored in an internal buffer for the next call to`stringDecoder.write()` or `stringDecoder.end()`.
|
|
48
48
|
* @since v0.1.99
|
|
49
|
-
* @param buffer
|
|
49
|
+
* @param buffer The bytes to decode.
|
|
50
50
|
*/
|
|
51
51
|
write(buffer: Buffer): string;
|
|
52
52
|
/**
|
|
@@ -57,7 +57,7 @@ declare module "string_decoder" {
|
|
|
57
57
|
* If the `buffer` argument is provided, one final call to `stringDecoder.write()`is performed before returning the remaining input.
|
|
58
58
|
* After `end()` is called, the `stringDecoder` object can be reused for new input.
|
|
59
59
|
* @since v0.9.3
|
|
60
|
-
* @param buffer
|
|
60
|
+
* @param buffer The bytes to decode.
|
|
61
61
|
*/
|
|
62
62
|
end(buffer?: Buffer): string;
|
|
63
63
|
}
|
node/ts4.8/test.d.ts
CHANGED
|
@@ -295,7 +295,7 @@ declare module "node:test" {
|
|
|
295
295
|
/**
|
|
296
296
|
* A function that accepts the TestsStream instance and can be used to setup listeners before any tests are run.
|
|
297
297
|
*/
|
|
298
|
-
setup?: (root:
|
|
298
|
+
setup?: (root: Test) => void | Promise<void>;
|
|
299
299
|
/**
|
|
300
300
|
* Whether to run in watch mode or not.
|
|
301
301
|
* @default false
|
|
@@ -1026,11 +1026,6 @@ declare module "node:test" {
|
|
|
1026
1026
|
* mock.timers.enable(['setInterval']);
|
|
1027
1027
|
* ```
|
|
1028
1028
|
*
|
|
1029
|
-
* ```js
|
|
1030
|
-
* const { mock } = require('node:test');
|
|
1031
|
-
* mock.timers.enable(['setInterval']);
|
|
1032
|
-
* ```
|
|
1033
|
-
*
|
|
1034
1029
|
* The above example enables mocking for the `setInterval` timer and
|
|
1035
1030
|
* implicitly mocks the `clearInterval` function. Only the `setInterval`and `clearInterval` functions from `node:timers`,`node:timers/promises`, and`globalThis` will be mocked.
|
|
1036
1031
|
*
|
|
@@ -1054,11 +1049,6 @@ declare module "node:test" {
|
|
|
1054
1049
|
* import { mock } from 'node:test';
|
|
1055
1050
|
* mock.timers.reset();
|
|
1056
1051
|
* ```
|
|
1057
|
-
*
|
|
1058
|
-
* ```js
|
|
1059
|
-
* const { mock } = require('node:test');
|
|
1060
|
-
* mock.timers.reset();
|
|
1061
|
-
* ```
|
|
1062
1052
|
* @since v20.4.0
|
|
1063
1053
|
*/
|
|
1064
1054
|
reset(): void;
|
|
@@ -1093,24 +1083,6 @@ declare module "node:test" {
|
|
|
1093
1083
|
* });
|
|
1094
1084
|
* ```
|
|
1095
1085
|
*
|
|
1096
|
-
* ```js
|
|
1097
|
-
* const assert = require('node:assert');
|
|
1098
|
-
* const { test } = require('node:test');
|
|
1099
|
-
*
|
|
1100
|
-
* test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => {
|
|
1101
|
-
* const fn = context.mock.fn();
|
|
1102
|
-
* context.mock.timers.enable(['setTimeout']);
|
|
1103
|
-
*
|
|
1104
|
-
* setTimeout(fn, 9999);
|
|
1105
|
-
* assert.strictEqual(fn.mock.callCount(), 0);
|
|
1106
|
-
*
|
|
1107
|
-
* // Advance in time
|
|
1108
|
-
* context.mock.timers.tick(9999);
|
|
1109
|
-
*
|
|
1110
|
-
* assert.strictEqual(fn.mock.callCount(), 1);
|
|
1111
|
-
* });
|
|
1112
|
-
* ```
|
|
1113
|
-
*
|
|
1114
1086
|
* Alternativelly, the `.tick` function can be called many times
|
|
1115
1087
|
*
|
|
1116
1088
|
* ```js
|
|
@@ -1131,25 +1103,6 @@ declare module "node:test" {
|
|
|
1131
1103
|
* assert.strictEqual(fn.mock.callCount(), 1);
|
|
1132
1104
|
* });
|
|
1133
1105
|
* ```
|
|
1134
|
-
*
|
|
1135
|
-
* ```js
|
|
1136
|
-
* const assert = require('node:assert');
|
|
1137
|
-
* const { test } = require('node:test');
|
|
1138
|
-
*
|
|
1139
|
-
* test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => {
|
|
1140
|
-
* const fn = context.mock.fn();
|
|
1141
|
-
* context.mock.timers.enable(['setTimeout']);
|
|
1142
|
-
* const nineSecs = 9000;
|
|
1143
|
-
* setTimeout(fn, nineSecs);
|
|
1144
|
-
*
|
|
1145
|
-
* const twoSeconds = 3000;
|
|
1146
|
-
* context.mock.timers.tick(twoSeconds);
|
|
1147
|
-
* context.mock.timers.tick(twoSeconds);
|
|
1148
|
-
* context.mock.timers.tick(twoSeconds);
|
|
1149
|
-
*
|
|
1150
|
-
* assert.strictEqual(fn.mock.callCount(), 1);
|
|
1151
|
-
* });
|
|
1152
|
-
* ```
|
|
1153
1106
|
* @since v20.4.0
|
|
1154
1107
|
*/
|
|
1155
1108
|
tick(milliseconds: number): void;
|
|
@@ -1181,28 +1134,6 @@ declare module "node:test" {
|
|
|
1181
1134
|
* });
|
|
1182
1135
|
* ```
|
|
1183
1136
|
*
|
|
1184
|
-
* ```js
|
|
1185
|
-
* const assert = require('node:assert');
|
|
1186
|
-
* const { test } = require('node:test');
|
|
1187
|
-
*
|
|
1188
|
-
* test('runAll functions following the given order', (context) => {
|
|
1189
|
-
* context.mock.timers.enable(['setTimeout']);
|
|
1190
|
-
* const results = [];
|
|
1191
|
-
* setTimeout(() => results.push(1), 9999);
|
|
1192
|
-
*
|
|
1193
|
-
* // Notice that if both timers have the same timeout,
|
|
1194
|
-
* // the order of execution is guaranteed
|
|
1195
|
-
* setTimeout(() => results.push(3), 8888);
|
|
1196
|
-
* setTimeout(() => results.push(2), 8888);
|
|
1197
|
-
*
|
|
1198
|
-
* assert.deepStrictEqual(results, []);
|
|
1199
|
-
*
|
|
1200
|
-
* context.mock.timers.runAll();
|
|
1201
|
-
*
|
|
1202
|
-
* assert.deepStrictEqual(results, [3, 2, 1]);
|
|
1203
|
-
* });
|
|
1204
|
-
* ```
|
|
1205
|
-
*
|
|
1206
1137
|
* **Note:** The `runAll()` function is specifically designed for
|
|
1207
1138
|
* triggering timers in the context of timer mocking.
|
|
1208
1139
|
* It does not have any effect on real-time system
|
|
@@ -1218,7 +1149,23 @@ declare module "node:test" {
|
|
|
1218
1149
|
export { after, afterEach, before, beforeEach, describe, it, mock, only, run, skip, test, test as default, todo, Mock };
|
|
1219
1150
|
}
|
|
1220
1151
|
|
|
1221
|
-
interface
|
|
1152
|
+
interface TestLocationInfo {
|
|
1153
|
+
/**
|
|
1154
|
+
* The column number where the test is defined, or
|
|
1155
|
+
* `undefined` if the test was run through the REPL.
|
|
1156
|
+
*/
|
|
1157
|
+
column?: number;
|
|
1158
|
+
/**
|
|
1159
|
+
* The path of the test file, `undefined` if test is not ran through a file.
|
|
1160
|
+
*/
|
|
1161
|
+
file?: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* The line number where the test is defined, or
|
|
1164
|
+
* `undefined` if the test was run through the REPL.
|
|
1165
|
+
*/
|
|
1166
|
+
line?: number;
|
|
1167
|
+
}
|
|
1168
|
+
interface DiagnosticData extends TestLocationInfo {
|
|
1222
1169
|
/**
|
|
1223
1170
|
* The diagnostic message.
|
|
1224
1171
|
*/
|
|
@@ -1227,12 +1174,8 @@ interface DiagnosticData {
|
|
|
1227
1174
|
* The nesting level of the test.
|
|
1228
1175
|
*/
|
|
1229
1176
|
nesting: number;
|
|
1230
|
-
/**
|
|
1231
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1232
|
-
*/
|
|
1233
|
-
file?: string;
|
|
1234
1177
|
}
|
|
1235
|
-
interface TestFail {
|
|
1178
|
+
interface TestFail extends TestLocationInfo {
|
|
1236
1179
|
/**
|
|
1237
1180
|
* Additional execution metadata.
|
|
1238
1181
|
*/
|
|
@@ -1271,12 +1214,8 @@ interface TestFail {
|
|
|
1271
1214
|
* Present if `context.skip` is called.
|
|
1272
1215
|
*/
|
|
1273
1216
|
skip?: string | boolean;
|
|
1274
|
-
/**
|
|
1275
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1276
|
-
*/
|
|
1277
|
-
file?: string;
|
|
1278
1217
|
}
|
|
1279
|
-
interface TestPass {
|
|
1218
|
+
interface TestPass extends TestLocationInfo {
|
|
1280
1219
|
/**
|
|
1281
1220
|
* Additional execution metadata.
|
|
1282
1221
|
*/
|
|
@@ -1311,12 +1250,8 @@ interface TestPass {
|
|
|
1311
1250
|
* Present if `context.skip` is called.
|
|
1312
1251
|
*/
|
|
1313
1252
|
skip?: string | boolean;
|
|
1314
|
-
/**
|
|
1315
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1316
|
-
*/
|
|
1317
|
-
file?: string;
|
|
1318
1253
|
}
|
|
1319
|
-
interface TestPlan {
|
|
1254
|
+
interface TestPlan extends TestLocationInfo {
|
|
1320
1255
|
/**
|
|
1321
1256
|
* The nesting level of the test.
|
|
1322
1257
|
*/
|
|
@@ -1325,12 +1260,8 @@ interface TestPlan {
|
|
|
1325
1260
|
* The number of subtests that have ran.
|
|
1326
1261
|
*/
|
|
1327
1262
|
count: number;
|
|
1328
|
-
/**
|
|
1329
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1330
|
-
*/
|
|
1331
|
-
file?: string;
|
|
1332
1263
|
}
|
|
1333
|
-
interface TestStart {
|
|
1264
|
+
interface TestStart extends TestLocationInfo {
|
|
1334
1265
|
/**
|
|
1335
1266
|
* The test name.
|
|
1336
1267
|
*/
|
|
@@ -1339,54 +1270,34 @@ interface TestStart {
|
|
|
1339
1270
|
* The nesting level of the test.
|
|
1340
1271
|
*/
|
|
1341
1272
|
nesting: number;
|
|
1342
|
-
/**
|
|
1343
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1344
|
-
*/
|
|
1345
|
-
file?: string;
|
|
1346
1273
|
}
|
|
1347
|
-
interface TestStderr {
|
|
1348
|
-
/**
|
|
1349
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1350
|
-
*/
|
|
1351
|
-
file?: string;
|
|
1274
|
+
interface TestStderr extends TestLocationInfo {
|
|
1352
1275
|
/**
|
|
1353
1276
|
* The message written to `stderr`
|
|
1354
1277
|
*/
|
|
1355
1278
|
message: string;
|
|
1356
1279
|
}
|
|
1357
|
-
interface TestStdout {
|
|
1358
|
-
/**
|
|
1359
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1360
|
-
*/
|
|
1361
|
-
file?: string;
|
|
1280
|
+
interface TestStdout extends TestLocationInfo {
|
|
1362
1281
|
/**
|
|
1363
1282
|
* The message written to `stdout`
|
|
1364
1283
|
*/
|
|
1365
1284
|
message: string;
|
|
1366
1285
|
}
|
|
1367
|
-
interface TestEnqueue {
|
|
1286
|
+
interface TestEnqueue extends TestLocationInfo {
|
|
1368
1287
|
/**
|
|
1369
1288
|
* The test name
|
|
1370
1289
|
*/
|
|
1371
1290
|
name: string;
|
|
1372
|
-
/**
|
|
1373
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1374
|
-
*/
|
|
1375
|
-
file?: string;
|
|
1376
1291
|
/**
|
|
1377
1292
|
* The nesting level of the test.
|
|
1378
1293
|
*/
|
|
1379
1294
|
nesting: number;
|
|
1380
1295
|
}
|
|
1381
|
-
interface TestDequeue {
|
|
1296
|
+
interface TestDequeue extends TestLocationInfo {
|
|
1382
1297
|
/**
|
|
1383
1298
|
* The test name
|
|
1384
1299
|
*/
|
|
1385
1300
|
name: string;
|
|
1386
|
-
/**
|
|
1387
|
-
* The path of the test file, undefined if test is not ran through a file.
|
|
1388
|
-
*/
|
|
1389
|
-
file?: string;
|
|
1390
1301
|
/**
|
|
1391
1302
|
* The nesting level of the test.
|
|
1392
1303
|
*/
|