@vitest/expect 3.0.6 → 3.0.7

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.d.ts +1 -1
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -86,7 +86,7 @@ type ExpectationResult = SyncExpectationResult | AsyncExpectationResult;
86
86
  interface RawMatcherFn<T extends MatcherState = MatcherState> {
87
87
  (this: T, received: any, ...expected: Array<any>): ExpectationResult;
88
88
  }
89
- type MatchersObject<T extends MatcherState = MatcherState> = Record<string, RawMatcherFn<T>>;
89
+ type MatchersObject<T extends MatcherState = MatcherState> = Record<string, RawMatcherFn<T>> & ThisType<T>;
90
90
  interface ExpectStatic extends Chai.ExpectStatic, AsymmetricMatchersContaining {
91
91
  <T>(actual: T, message?: string): Assertion<T>;
92
92
  extend: (expects: MatchersObject) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/expect",
3
3
  "type": "module",
4
- "version": "3.0.6",
4
+ "version": "3.0.7",
5
5
  "description": "Jest's expect matchers as a Chai plugin",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -32,13 +32,13 @@
32
32
  "dependencies": {
33
33
  "chai": "^5.2.0",
34
34
  "tinyrainbow": "^2.0.0",
35
- "@vitest/spy": "3.0.6",
36
- "@vitest/utils": "3.0.6"
35
+ "@vitest/spy": "3.0.7",
36
+ "@vitest/utils": "3.0.7"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/chai": "4.3.6",
40
40
  "rollup-plugin-copy": "^3.5.0",
41
- "@vitest/runner": "3.0.6"
41
+ "@vitest/runner": "3.0.7"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "rimraf dist && rollup -c",