@vitest/runner 0.31.2 → 0.31.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -66,7 +66,7 @@ function makeTimeoutMsg(isHook, timeout) {
66
66
  If this is a long-running ${isHook ? "hook" : "test"}, pass a timeout value as the last argument or configure it globally with "${isHook ? "hookTimeout" : "testTimeout"}".`;
67
67
  }
68
68
 
69
- var version = "0.31.2";
69
+ var version = "0.31.4";
70
70
 
71
71
  function getVersion() {
72
72
  return globalThis.__vitest_runner_version__ || version;
@@ -234,15 +234,13 @@ function createSuiteCollector(name, factory = () => {
234
234
  }
235
235
  function createSuite() {
236
236
  function suiteFn(name, factory, options) {
237
- var _a;
238
237
  checkVersion();
239
238
  const mode = this.only ? "only" : this.skip ? "skip" : this.todo ? "todo" : "run";
240
239
  const currentSuite = getCurrentSuite();
241
240
  if (typeof options === "number")
242
241
  options = { timeout: options };
243
- if (currentSuite && typeof ((_a = currentSuite.options) == null ? void 0 : _a.repeats) === "number") {
244
- options = { repeats: currentSuite.options.repeats, ...options };
245
- }
242
+ if (currentSuite == null ? void 0 : currentSuite.options)
243
+ options = { ...currentSuite.options, ...options };
246
244
  return createSuiteCollector(name, factory, mode, this.concurrent, this.shuffle, this.each, options);
247
245
  }
248
246
  suiteFn.each = function(cases, ...args) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/runner",
3
3
  "type": "module",
4
- "version": "0.31.2",
4
+ "version": "0.31.4",
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.31.2"
44
+ "@vitest/utils": "0.31.4"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "rimraf dist && rollup -c",