@vitest/runner 3.2.3 → 3.2.4
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/chunk-hooks.js +5 -2
- package/package.json +2 -2
package/dist/chunk-hooks.js
CHANGED
@@ -896,14 +896,17 @@ function createTaskCollector(fn, context) {
|
|
896
896
|
};
|
897
897
|
taskFn.extend = function(fixtures) {
|
898
898
|
const _context = mergeContextFixtures(fixtures, context || {}, runner);
|
899
|
-
|
899
|
+
const originalWrapper = fn;
|
900
|
+
return createTest(function(name, optionsOrFn, optionsOrTest) {
|
900
901
|
const collector = getCurrentSuite();
|
901
902
|
const scopedFixtures = collector.fixtures();
|
902
903
|
const context = { ...this };
|
903
904
|
if (scopedFixtures) {
|
904
905
|
context.fixtures = mergeScopedFixtures(context.fixtures || [], scopedFixtures);
|
905
906
|
}
|
906
|
-
|
907
|
+
const { handler, options } = parseArguments(optionsOrFn, optionsOrTest);
|
908
|
+
const timeout = options.timeout ?? (runner === null || runner === void 0 ? void 0 : runner.config.testTimeout);
|
909
|
+
originalWrapper.call(context, formatName(name), handler, timeout);
|
907
910
|
}, _context);
|
908
911
|
};
|
909
912
|
const _test = createChainable([
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/runner",
|
3
3
|
"type": "module",
|
4
|
-
"version": "3.2.
|
4
|
+
"version": "3.2.4",
|
5
5
|
"description": "Vitest test runner",
|
6
6
|
"license": "MIT",
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"dependencies": {
|
41
41
|
"pathe": "^2.0.3",
|
42
42
|
"strip-literal": "^3.0.0",
|
43
|
-
"@vitest/utils": "3.2.
|
43
|
+
"@vitest/utils": "3.2.4"
|
44
44
|
},
|
45
45
|
"scripts": {
|
46
46
|
"build": "rimraf dist && rollup -c",
|