@vitest/expect 4.1.0-beta.6 → 4.1.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1120,9 +1120,11 @@ function recordAsyncExpect(_test, promise, assertion, error, isSoft) {
1120
1120
  return promise.then(onFulfilled, onRejected);
1121
1121
  },
1122
1122
  catch(onRejected) {
1123
+ resolved = true;
1123
1124
  return promise.catch(onRejected);
1124
1125
  },
1125
1126
  finally(onFinally) {
1127
+ resolved = true;
1126
1128
  return promise.finally(onFinally);
1127
1129
  },
1128
1130
  [Symbol.toStringTag]: "Promise"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/expect",
3
3
  "type": "module",
4
- "version": "4.1.0-beta.6",
4
+ "version": "4.1.0",
5
5
  "description": "Jest's expect matchers as a Chai plugin",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -39,11 +39,11 @@
39
39
  "@types/chai": "^5.2.2",
40
40
  "chai": "^6.2.2",
41
41
  "tinyrainbow": "^3.0.3",
42
- "@vitest/spy": "4.1.0-beta.6",
43
- "@vitest/utils": "4.1.0-beta.6"
42
+ "@vitest/spy": "4.1.0",
43
+ "@vitest/utils": "4.1.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vitest/runner": "4.1.0-beta.6"
46
+ "@vitest/runner": "4.1.0"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "premove dist && rollup -c",