test-inventory 0.8.0 → 0.9.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/CHANGELOG.md +229 -0
- package/README.md +16 -11
- package/dist/case-titles.d.ts +9 -0
- package/dist/case-titles.js +82 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +4 -2
- package/dist/config-dependencies.js +19 -0
- package/dist/config-runs.d.ts +95 -3
- package/dist/config-runs.js +784 -16
- package/dist/config.d.ts +24 -0
- package/dist/config.js +139 -19
- package/dist/diagnostics.js +14 -1
- package/dist/extract.d.ts +2 -0
- package/dist/extract.js +36 -10
- package/dist/files.d.ts +3 -2
- package/dist/files.js +52 -8
- package/dist/filter.js +1 -0
- package/dist/framework-version.d.ts +4 -2
- package/dist/framework-version.js +170 -15
- package/dist/frameworks/bun.d.ts +44 -0
- package/dist/frameworks/bun.js +280 -0
- package/dist/frameworks/common.d.ts +3 -1
- package/dist/frameworks/common.js +11 -9
- package/dist/frameworks/cypress.d.ts +31 -0
- package/dist/frameworks/cypress.js +70 -0
- package/dist/frameworks/jasmine.d.ts +29 -0
- package/dist/frameworks/jasmine.js +228 -0
- package/dist/frameworks/jest.js +1 -1
- package/dist/frameworks/mocha.d.ts +50 -0
- package/dist/frameworks/mocha.js +307 -0
- package/dist/frameworks/node.d.ts +30 -0
- package/dist/frameworks/node.js +271 -0
- package/dist/frameworks/playwright.d.ts +18 -0
- package/dist/frameworks/playwright.js +84 -0
- package/dist/frameworks/test-functions.d.ts +26 -1
- package/dist/frameworks/test-functions.js +73 -22
- package/dist/frameworks/vitest.d.ts +9 -1
- package/dist/frameworks/vitest.js +36 -5
- package/dist/frameworks/webdriverio.d.ts +27 -0
- package/dist/frameworks/webdriverio.js +37 -0
- package/dist/model.d.ts +4 -0
- package/dist/node-scripts.d.ts +11 -0
- package/dist/node-scripts.js +136 -0
- package/dist/options.d.ts +13 -4
- package/dist/options.js +22 -3
- package/dist/records.d.ts +10 -2
- package/dist/records.js +83 -16
- package/dist/resolve.d.ts +27 -4
- package/dist/resolve.js +64 -16
- package/dist/scan-file.d.ts +8 -0
- package/dist/scan-file.js +18 -2
- package/dist/scan.js +42 -7
- package/dist/toml.d.ts +13 -0
- package/dist/toml.js +179 -0
- package/dist/types.d.ts +19 -9
- package/dist/values.d.ts +5 -0
- package/dist/values.js +13 -0
- package/dist/yaml.d.ts +13 -0
- package/dist/yaml.js +287 -0
- package/package.json +13 -6
- package/schema/v1.json +26 -6
package/dist/yaml.js
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
/** Where a YAML text uses something `readYaml` doesn't read, with its 1-based line. */
|
|
2
|
+
export class YamlError extends Error {
|
|
3
|
+
line;
|
|
4
|
+
constructor(message, line) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.line = line;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The value of a YAML config as Mocha's `.mocharc.yml` files write it: a map of keys to scalars, to lists written one
|
|
11
|
+
* item per line or in brackets, and to maps of those. Anchors, multi-line strings, flow maps and documents after the
|
|
12
|
+
* first are refused with a `YamlError`, as a guess at them could read the wrong test files, and so is what js-yaml,
|
|
13
|
+
* Mocha's reader, refuses: a key set twice, a tab in the indent, or `: ` in a plain value.
|
|
14
|
+
*/
|
|
15
|
+
export function readYaml(text) {
|
|
16
|
+
const lines = [];
|
|
17
|
+
let ended = false;
|
|
18
|
+
text
|
|
19
|
+
.replace(/^\uFEFF/, '')
|
|
20
|
+
.split(/\r?\n/)
|
|
21
|
+
.forEach((raw, index) => {
|
|
22
|
+
const content = withoutComment(raw);
|
|
23
|
+
const trimmed = content.trim();
|
|
24
|
+
if (trimmed === '')
|
|
25
|
+
return;
|
|
26
|
+
const number = index + 1;
|
|
27
|
+
// Directives and the `---` that starts the document come before its content, and `...` ends it.
|
|
28
|
+
if (lines.length === 0 && !ended && (trimmed === '---' || trimmed.startsWith('%')))
|
|
29
|
+
return;
|
|
30
|
+
if (ended || trimmed === '---')
|
|
31
|
+
throw new YamlError('documents after the first are not read', number);
|
|
32
|
+
if (trimmed === '...') {
|
|
33
|
+
ended = true;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const indent = content.slice(0, content.length - content.trimStart().length);
|
|
37
|
+
if (indent.includes('\t'))
|
|
38
|
+
throw new YamlError('the line is indented with a tab, which YAML refuses', number);
|
|
39
|
+
lines.push({ number, indent: indent.length, text: trimmed });
|
|
40
|
+
});
|
|
41
|
+
if (lines.length === 0)
|
|
42
|
+
return {};
|
|
43
|
+
const [value, next] = block(lines, 0, lines[0].indent);
|
|
44
|
+
if (next < lines.length)
|
|
45
|
+
throw new YamlError('a line is indented less than the one it continues', lines[next].number);
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
/** Whether a line is a list item: a `-` alone or before a space, as `-a.js` is a plain value. */
|
|
49
|
+
function isItem(text) {
|
|
50
|
+
return /^-(\s|$)/.test(text);
|
|
51
|
+
}
|
|
52
|
+
/** A map or a list whose lines start at `indent`, and the index of the line after it. */
|
|
53
|
+
function block(lines, start, indent) {
|
|
54
|
+
if (isItem(lines[start].text))
|
|
55
|
+
return list(lines, start, indent);
|
|
56
|
+
// Without a prototype, a `__proto__` key is the map's own, as js-yaml, which Mocha uses, reads it.
|
|
57
|
+
const map = Object.create(null);
|
|
58
|
+
let index = start;
|
|
59
|
+
while (index < lines.length && lines[index].indent === indent) {
|
|
60
|
+
const line = lines[index];
|
|
61
|
+
const match = /^("[^"]*"|'[^']*'|[^\s:'"][^:]*?)\s*:(?:\s+(.*))?$/.exec(line.text);
|
|
62
|
+
if (!match)
|
|
63
|
+
throw new YamlError(`"${line.text}" is not a key and its value`, line.number);
|
|
64
|
+
const key = unquote(match[1], line.number);
|
|
65
|
+
if (Object.hasOwn(map, key))
|
|
66
|
+
throw new YamlError(`${key} is set twice, which YAML refuses`, line.number);
|
|
67
|
+
// An optional group that matched nothing is undefined, though the type says it is a string.
|
|
68
|
+
const value = match[2];
|
|
69
|
+
if (value !== undefined) {
|
|
70
|
+
map[key] = scalarOrFlow(value, line.number);
|
|
71
|
+
index += 1;
|
|
72
|
+
}
|
|
73
|
+
else if (index + 1 < lines.length && lines[index + 1].indent > indent) {
|
|
74
|
+
[map[key], index] = block(lines, index + 1, lines[index + 1].indent);
|
|
75
|
+
}
|
|
76
|
+
else if (index + 1 < lines.length && lines[index + 1].indent === indent && isItem(lines[index + 1].text)) {
|
|
77
|
+
// A list may sit at the same indent as its key.
|
|
78
|
+
[map[key], index] = list(lines, index + 1, indent);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
map[key] = null;
|
|
82
|
+
index += 1;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return [map, index];
|
|
86
|
+
}
|
|
87
|
+
function list(lines, start, indent) {
|
|
88
|
+
const items = [];
|
|
89
|
+
let index = start;
|
|
90
|
+
while (index < lines.length && lines[index].indent === indent && isItem(lines[index].text)) {
|
|
91
|
+
const line = lines[index];
|
|
92
|
+
const item = line.text.slice(1).trim();
|
|
93
|
+
if (item === '' || /^[^'"[\]]*:(\s|$)/.test(item)) {
|
|
94
|
+
throw new YamlError('a list item that is a map or spans lines is not read', line.number);
|
|
95
|
+
}
|
|
96
|
+
items.push(scalarOrFlow(item, line.number));
|
|
97
|
+
index += 1;
|
|
98
|
+
}
|
|
99
|
+
return [items, index];
|
|
100
|
+
}
|
|
101
|
+
/** A scalar, or a list written in brackets, as `[ts, js]`. */
|
|
102
|
+
function scalarOrFlow(text, line) {
|
|
103
|
+
if (text.startsWith('[')) {
|
|
104
|
+
if (!text.endsWith(']'))
|
|
105
|
+
throw new YamlError('a list in brackets must end on its line', line);
|
|
106
|
+
const items = flowItems(text.slice(1, -1));
|
|
107
|
+
// A trailing comma ends the list without another item, as in `[ts, js,]`.
|
|
108
|
+
if (items.at(-1) === '')
|
|
109
|
+
items.pop();
|
|
110
|
+
if (items.includes(''))
|
|
111
|
+
throw new YamlError('a list in brackets has an empty item', line);
|
|
112
|
+
return items.map((item) => scalar(item, line));
|
|
113
|
+
}
|
|
114
|
+
return scalar(text, line);
|
|
115
|
+
}
|
|
116
|
+
/** The items of a list in brackets, split at the commas outside quotes. */
|
|
117
|
+
function flowItems(inner) {
|
|
118
|
+
const items = [];
|
|
119
|
+
let item = '';
|
|
120
|
+
let quote = null;
|
|
121
|
+
for (let index = 0; index < inner.length; index++) {
|
|
122
|
+
const char = inner[index];
|
|
123
|
+
if (quote === null && char === ',') {
|
|
124
|
+
items.push(item.trim());
|
|
125
|
+
item = '';
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
item += char;
|
|
129
|
+
if (quote === null) {
|
|
130
|
+
if ((char === '"' || char === "'") && item.trim() === char)
|
|
131
|
+
quote = char;
|
|
132
|
+
}
|
|
133
|
+
else if (quote === '"' && char === '\\') {
|
|
134
|
+
item += inner[++index] ?? '';
|
|
135
|
+
}
|
|
136
|
+
else if (char === quote) {
|
|
137
|
+
if (quote === "'" && inner[index + 1] === "'")
|
|
138
|
+
item += inner[++index];
|
|
139
|
+
else
|
|
140
|
+
quote = null;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
items.push(item.trim());
|
|
144
|
+
return items;
|
|
145
|
+
}
|
|
146
|
+
function scalar(text, line) {
|
|
147
|
+
if (/^["']/.test(text)) {
|
|
148
|
+
if (text.length < 2 || text.at(-1) !== text[0])
|
|
149
|
+
throw new YamlError('a quoted value must end on its line', line);
|
|
150
|
+
return unquote(text, line);
|
|
151
|
+
}
|
|
152
|
+
// `@`, `` ` `` and `%` are reserved, and `- `, `? ` and `: ` start a list, a key or a value, as js-yaml reads them.
|
|
153
|
+
if (/^([&*!|>{[\]@`%]|[-?:](\s|$))/.test(text))
|
|
154
|
+
throw new YamlError(`"${text}" uses YAML that is not read`, line);
|
|
155
|
+
if (/:(\s|$)/.test(text)) {
|
|
156
|
+
throw new YamlError(`"${text}" has a colon and a space outside quotes, which YAML refuses`, line);
|
|
157
|
+
}
|
|
158
|
+
if (/^(true|True|TRUE)$/.test(text))
|
|
159
|
+
return true;
|
|
160
|
+
if (/^(false|False|FALSE)$/.test(text))
|
|
161
|
+
return false;
|
|
162
|
+
if (/^(null|Null|NULL|~)$/.test(text))
|
|
163
|
+
return null;
|
|
164
|
+
// Numbers as YAML 1.2 writes them, which js-yaml, Mocha's reader, follows: `1_000` is a string.
|
|
165
|
+
if (/^0o[0-7]+$/.test(text))
|
|
166
|
+
return Number.parseInt(text.slice(2), 8);
|
|
167
|
+
if (/^0x[\da-fA-F]+$/.test(text))
|
|
168
|
+
return Number.parseInt(text.slice(2), 16);
|
|
169
|
+
// A sign needs a digit after it: js-yaml reads `-.5` as a string.
|
|
170
|
+
if (/^([-+]?\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?$/.test(text))
|
|
171
|
+
return Number(text);
|
|
172
|
+
return text;
|
|
173
|
+
}
|
|
174
|
+
/** YAML's escapes in double quotes, besides `\\x`, `\\u` and `\\U` with hex digits. */
|
|
175
|
+
const ESCAPES = {
|
|
176
|
+
'0': '\0',
|
|
177
|
+
a: '\x07',
|
|
178
|
+
b: '\b',
|
|
179
|
+
t: '\t',
|
|
180
|
+
'\t': '\t',
|
|
181
|
+
n: '\n',
|
|
182
|
+
v: '\v',
|
|
183
|
+
f: '\f',
|
|
184
|
+
r: '\r',
|
|
185
|
+
e: '\x1B',
|
|
186
|
+
' ': ' ',
|
|
187
|
+
'"': '"',
|
|
188
|
+
'/': '/',
|
|
189
|
+
'\\': '\\',
|
|
190
|
+
N: '\x85',
|
|
191
|
+
_: '\xA0',
|
|
192
|
+
L: '\u2028',
|
|
193
|
+
P: '\u2029',
|
|
194
|
+
};
|
|
195
|
+
const HEX_DIGITS = { x: 2, u: 4, U: 8 };
|
|
196
|
+
/** A quoted key or value without its quotes: `''` is a quote in single quotes, and double quotes take escapes. */
|
|
197
|
+
function unquote(text, line) {
|
|
198
|
+
if (!/^["']/.test(text))
|
|
199
|
+
return text;
|
|
200
|
+
const inner = text.slice(1, -1);
|
|
201
|
+
if (text.startsWith("'")) {
|
|
202
|
+
if (inner.replaceAll("''", '').includes("'"))
|
|
203
|
+
throw new YamlError('a quoted value must end on its line', line);
|
|
204
|
+
return inner.replaceAll("''", "'");
|
|
205
|
+
}
|
|
206
|
+
let value = '';
|
|
207
|
+
for (let index = 0; index < inner.length; index++) {
|
|
208
|
+
const char = inner[index];
|
|
209
|
+
if (char === '"')
|
|
210
|
+
throw new YamlError('a quoted value must end on its line', line);
|
|
211
|
+
if (char !== '\\') {
|
|
212
|
+
value += char;
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
const escape = inner[++index] ?? '';
|
|
216
|
+
const size = HEX_DIGITS[escape] ?? 0;
|
|
217
|
+
const digits = inner.slice(index + 1, index + 1 + size);
|
|
218
|
+
const code = size > 0 && /^[\da-fA-F]+$/.test(digits) ? Number.parseInt(digits, 16) : Number.NaN;
|
|
219
|
+
if (digits.length === size && code <= 0x10ffff) {
|
|
220
|
+
value += String.fromCodePoint(code);
|
|
221
|
+
index += size;
|
|
222
|
+
}
|
|
223
|
+
else if (size === 0 && Object.hasOwn(ESCAPES, escape)) {
|
|
224
|
+
value += ESCAPES[escape];
|
|
225
|
+
}
|
|
226
|
+
else if (escape === '') {
|
|
227
|
+
throw new YamlError('a quoted value must end on its line', line);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
throw new YamlError(`${text} has an escape that is not read`, line);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return value;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* The line without a `#` comment, which starts after a space or at the start, outside quotes. A quote opens only where
|
|
237
|
+
* a value starts: at the start of the line, after a key's `: `, a list's `- `, or a `[` or `,` in brackets, so the
|
|
238
|
+
* apostrophe in `grep: don't` is part of the value. One pass over the line, as a long one must not stall the scan.
|
|
239
|
+
*/
|
|
240
|
+
function withoutComment(line) {
|
|
241
|
+
let quote = null;
|
|
242
|
+
let valueStarts = true;
|
|
243
|
+
let started = false;
|
|
244
|
+
let brackets = 0;
|
|
245
|
+
for (let index = 0; index < line.length; index++) {
|
|
246
|
+
const char = line[index];
|
|
247
|
+
if (quote === '"') {
|
|
248
|
+
if (char === '\\')
|
|
249
|
+
index++;
|
|
250
|
+
else if (char === '"')
|
|
251
|
+
quote = null;
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
if (quote === "'") {
|
|
255
|
+
if (char === "'" && line[index + 1] === "'")
|
|
256
|
+
index++;
|
|
257
|
+
else if (char === "'")
|
|
258
|
+
quote = null;
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
261
|
+
if (char === '#' && (index === 0 || /\s/.test(line[index - 1])))
|
|
262
|
+
return line.slice(0, index).trimEnd();
|
|
263
|
+
if (/\s/.test(char))
|
|
264
|
+
continue;
|
|
265
|
+
const endsToken = index + 1 === line.length || /\s/.test(line[index + 1]);
|
|
266
|
+
if ((char === '"' || char === "'") && valueStarts)
|
|
267
|
+
quote = char;
|
|
268
|
+
else if (char === '[' && valueStarts)
|
|
269
|
+
brackets++;
|
|
270
|
+
else if (char === ',' && brackets > 0) {
|
|
271
|
+
valueStarts = true;
|
|
272
|
+
continue;
|
|
273
|
+
}
|
|
274
|
+
else if (char === ':' && endsToken) {
|
|
275
|
+
valueStarts = true;
|
|
276
|
+
continue;
|
|
277
|
+
}
|
|
278
|
+
else if (char === '-' && endsToken && !started) {
|
|
279
|
+
started = true;
|
|
280
|
+
valueStarts = true;
|
|
281
|
+
continue;
|
|
282
|
+
}
|
|
283
|
+
started = true;
|
|
284
|
+
valueStarts = char === '[';
|
|
285
|
+
}
|
|
286
|
+
return line.trimEnd();
|
|
287
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "test-inventory",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.9.1",
|
|
4
|
+
"description": "Lists every Playwright, Vitest, Jest, Mocha, Jasmine, Cypress, WebdriverIO, node:test and Bun test from the source code, without running it: its state and why, tags, an id that survives a move, a hash of everything it runs, and the tests a change can affect.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"testing",
|
|
7
7
|
"playwright",
|
|
8
8
|
"vitest",
|
|
9
|
+
"jest",
|
|
10
|
+
"mocha",
|
|
11
|
+
"jasmine",
|
|
12
|
+
"cypress",
|
|
13
|
+
"webdriverio",
|
|
14
|
+
"bun",
|
|
15
|
+
"node-test",
|
|
9
16
|
"test-suite",
|
|
10
17
|
"test-inventory",
|
|
11
18
|
"static-analysis",
|
|
@@ -79,7 +86,7 @@
|
|
|
79
86
|
"changeset": "changeset"
|
|
80
87
|
},
|
|
81
88
|
"dependencies": {
|
|
82
|
-
"oxc-parser": "0.
|
|
89
|
+
"oxc-parser": "0.157.0",
|
|
83
90
|
"picomatch": "^4.0.7",
|
|
84
91
|
"tinyglobby": "^0.2.17"
|
|
85
92
|
},
|
|
@@ -89,9 +96,9 @@
|
|
|
89
96
|
"@changesets/cli": "^3.0.3",
|
|
90
97
|
"@types/node": "~22.12.0",
|
|
91
98
|
"@types/picomatch": "^4.0.3",
|
|
92
|
-
"@vitest/coverage-v8": "5.0
|
|
99
|
+
"@vitest/coverage-v8": "5.1.0",
|
|
93
100
|
"ajv": "^8.20.0",
|
|
94
|
-
"eslint": "~10.
|
|
101
|
+
"eslint": "~10.14.0",
|
|
95
102
|
"prettier": "3.9.10",
|
|
96
103
|
"publint": "^0.3.25",
|
|
97
104
|
"ts-json-schema-generator": "2.9.0",
|
|
@@ -102,6 +109,6 @@
|
|
|
102
109
|
"typescript-eslint": "~8.72.1",
|
|
103
110
|
"vitepress": "2.0.0-alpha.21",
|
|
104
111
|
"vitepress-plugin-llms": "^1.14.0",
|
|
105
|
-
"vitest": "5.0
|
|
112
|
+
"vitest": "5.1.0"
|
|
106
113
|
}
|
|
107
114
|
}
|
package/schema/v1.json
CHANGED
|
@@ -99,7 +99,13 @@
|
|
|
99
99
|
"enum": [
|
|
100
100
|
"playwright",
|
|
101
101
|
"vitest",
|
|
102
|
-
"jest"
|
|
102
|
+
"jest",
|
|
103
|
+
"mocha",
|
|
104
|
+
"jasmine",
|
|
105
|
+
"cypress",
|
|
106
|
+
"webdriverio",
|
|
107
|
+
"node",
|
|
108
|
+
"bun"
|
|
103
109
|
]
|
|
104
110
|
},
|
|
105
111
|
{
|
|
@@ -260,7 +266,7 @@
|
|
|
260
266
|
"type": "null"
|
|
261
267
|
}
|
|
262
268
|
],
|
|
263
|
-
"description": "The projects the config runs tests in: Playwright's `projects`, or one for a config without them; Vitest's, with each browser instance as one. Null when the scan can't work them out."
|
|
269
|
+
"description": "The projects the config runs tests in: Playwright's `projects`, or one for a config without them; Vitest's, with each browser instance as one; Cypress's testing types, `e2e` and `component`; one for the other runners. Null when the scan can't work them out."
|
|
264
270
|
}
|
|
265
271
|
},
|
|
266
272
|
"required": [
|
|
@@ -268,7 +274,7 @@
|
|
|
268
274
|
"extends",
|
|
269
275
|
"projects"
|
|
270
276
|
],
|
|
271
|
-
"description": "A
|
|
277
|
+
"description": "A runner's config that scanned files use. For Playwright and Vitest, the nearest one in a file's folder or a folder above it, up to the root, as the runner started in that folder would; for Jest, the one at the root and the projects it names; for the other runners, the one config they read for the whole run. Read as code, never run."
|
|
272
278
|
},
|
|
273
279
|
"ProjectRecord": {
|
|
274
280
|
"type": "object",
|
|
@@ -279,7 +285,7 @@
|
|
|
279
285
|
},
|
|
280
286
|
"testDir": {
|
|
281
287
|
"type": "string",
|
|
282
|
-
"description": "The folder the project's test files are found in, from the project root: Playwright's `testDir`, Vitest's `dir
|
|
288
|
+
"description": "The folder the project's test files are found in, from the project root: Playwright's `testDir`, Vitest's `dir`, Jest's `rootDir`, Jasmine's `spec_dir`, Bun's `[test] root`; for the other runners, the config's folder."
|
|
283
289
|
},
|
|
284
290
|
"dependencies": {
|
|
285
291
|
"type": "array",
|
|
@@ -796,12 +802,24 @@
|
|
|
796
802
|
],
|
|
797
803
|
"description": "The nearest describe; null outside any describe."
|
|
798
804
|
},
|
|
805
|
+
"parentTestId": {
|
|
806
|
+
"anyOf": [
|
|
807
|
+
{
|
|
808
|
+
"type": "string",
|
|
809
|
+
"pattern": "^[0-9a-f]{16}$"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"type": "null"
|
|
813
|
+
}
|
|
814
|
+
],
|
|
815
|
+
"description": "The test whose body declares this one as a subtest, which `node:test` runs while it runs that test; null for every other test."
|
|
816
|
+
},
|
|
799
817
|
"suitePath": {
|
|
800
818
|
"type": "array",
|
|
801
819
|
"items": {
|
|
802
820
|
"type": "string"
|
|
803
821
|
},
|
|
804
|
-
"description": "Titles of the describes around the test, outermost first."
|
|
822
|
+
"description": "Titles of the describes around the test, and of the tests a subtest is declared in, outermost first."
|
|
805
823
|
},
|
|
806
824
|
"relativeFilePath": {
|
|
807
825
|
"type": "string",
|
|
@@ -1045,7 +1063,7 @@
|
|
|
1045
1063
|
"type": "null"
|
|
1046
1064
|
}
|
|
1047
1065
|
],
|
|
1048
|
-
"description": "How many times the runner runs the test again after the first run: Vitest's `repeats`, or Playwright's `repeatEach` from the config less one."
|
|
1066
|
+
"description": "How many times the runner runs the test again after the first run: Vitest's or Bun's `repeats`, or Playwright's `repeatEach` from the config less one."
|
|
1049
1067
|
},
|
|
1050
1068
|
"timeoutSource": {
|
|
1051
1069
|
"anyOf": [
|
|
@@ -1206,6 +1224,7 @@
|
|
|
1206
1224
|
"dependencies",
|
|
1207
1225
|
"hasUnfollowedDependencies",
|
|
1208
1226
|
"suiteId",
|
|
1227
|
+
"parentTestId",
|
|
1209
1228
|
"suitePath",
|
|
1210
1229
|
"relativeFilePath",
|
|
1211
1230
|
"fileName",
|
|
@@ -1454,6 +1473,7 @@
|
|
|
1454
1473
|
"nested-test",
|
|
1455
1474
|
"tag-without-at",
|
|
1456
1475
|
"removed-api",
|
|
1476
|
+
"invalid-fixture-argument",
|
|
1457
1477
|
"only-in-skipped-describe",
|
|
1458
1478
|
"config-may-change-state",
|
|
1459
1479
|
"undefined-tag",
|