@vitest/runner 0.32.0 → 0.32.2
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/dist/index.js +3 -9
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -111,14 +111,8 @@ function createSuiteCollector(name, factory = () => {
|
|
111
111
|
const mode2 = this.only ? "only" : this.skip ? "skip" : this.todo ? "todo" : "run";
|
112
112
|
if (typeof options === "number")
|
113
113
|
options = { timeout: options };
|
114
|
-
if (typeof suiteOptions === "object")
|
115
|
-
options = {
|
116
|
-
repeats: suiteOptions.repeats,
|
117
|
-
retry: suiteOptions.retry,
|
118
|
-
timeout: suiteOptions.timeout,
|
119
|
-
...options
|
120
|
-
};
|
121
|
-
}
|
114
|
+
if (typeof suiteOptions === "object")
|
115
|
+
options = Object.assign({}, suiteOptions, options);
|
122
116
|
const test3 = {
|
123
117
|
id: "",
|
124
118
|
type: "test",
|
@@ -269,7 +263,7 @@ function createTest(fn) {
|
|
269
263
|
);
|
270
264
|
}
|
271
265
|
function formatName(name) {
|
272
|
-
return typeof name === "string" ? name : name instanceof Function ? name.name : String(name);
|
266
|
+
return typeof name === "string" ? name : name instanceof Function ? name.name || "<anonymous>" : String(name);
|
273
267
|
}
|
274
268
|
function formatTitle(template, items, idx) {
|
275
269
|
if (template.includes("%#")) {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/runner",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.32.
|
4
|
+
"version": "0.32.2",
|
5
5
|
"description": "Vitest test runner",
|
6
6
|
"license": "MIT",
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"concordance": "^5.0.4",
|
42
42
|
"p-limit": "^4.0.0",
|
43
43
|
"pathe": "^1.1.0",
|
44
|
-
"@vitest/utils": "0.32.
|
44
|
+
"@vitest/utils": "0.32.2"
|
45
45
|
},
|
46
46
|
"scripts": {
|
47
47
|
"build": "rimraf dist && rollup -c",
|