@vitest/expect 3.2.2 → 3.2.3

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 +5 -5
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -165,8 +165,8 @@ type MatchersObject<T extends MatcherState = MatcherState> = Record<string, RawM
165
165
  interface ExpectStatic extends Chai.ExpectStatic, Matchers, AsymmetricMatchersContaining {
166
166
  <T>(actual: T, message?: string): Assertion<T>;
167
167
  extend: (expects: MatchersObject) => void;
168
- anything: () => AsymmetricMatcher<unknown>;
169
- any: (constructor: unknown) => AsymmetricMatcher<unknown>;
168
+ anything: () => any;
169
+ any: (constructor: unknown) => any;
170
170
  getState: () => MatcherState;
171
171
  setState: (state: Partial<MatcherState>) => void;
172
172
  not: AsymmetricMatchersContaining;
@@ -245,14 +245,14 @@ interface JestAssertion<T = any> extends jest.Matchers<void, T>, CustomMatcher {
245
245
  * @example
246
246
  * expect(user).toEqual({ name: 'Alice', age: 30 });
247
247
  */
248
- toEqual: <E>(expected: DeeplyAllowMatchers<E>) => void;
248
+ toEqual: <E>(expected: E) => void;
249
249
  /**
250
250
  * Use to test that objects have the same types as well as structure.
251
251
  *
252
252
  * @example
253
253
  * expect(user).toStrictEqual({ name: 'Alice', age: 30 });
254
254
  */
255
- toStrictEqual: <E>(expected: DeeplyAllowMatchers<E>) => void;
255
+ toStrictEqual: <E>(expected: E) => void;
256
256
  /**
257
257
  * Checks that a value is what you expect. It calls `Object.is` to compare values.
258
258
  * Don't use `toBe` with floating-point numbers.
@@ -279,7 +279,7 @@ interface JestAssertion<T = any> extends jest.Matchers<void, T>, CustomMatcher {
279
279
  * address: { city: 'Wonderland' }
280
280
  * });
281
281
  */
282
- toMatchObject: <E extends object | any[]>(expected: DeeplyAllowMatchers<E>) => void;
282
+ toMatchObject: <E extends object | any[]>(expected: E) => void;
283
283
  /**
284
284
  * Used when you want to check that an item is in a list.
285
285
  * For testing the items in the list, this uses `===`, a strict equality check.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/expect",
3
3
  "type": "module",
4
- "version": "3.2.2",
4
+ "version": "3.2.3",
5
5
  "description": "Jest's expect matchers as a Chai plugin",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -32,12 +32,12 @@
32
32
  "@types/chai": "^5.2.2",
33
33
  "chai": "^5.2.0",
34
34
  "tinyrainbow": "^2.0.0",
35
- "@vitest/spy": "3.2.2",
36
- "@vitest/utils": "3.2.2"
35
+ "@vitest/spy": "3.2.3",
36
+ "@vitest/utils": "3.2.3"
37
37
  },
38
38
  "devDependencies": {
39
39
  "rollup-plugin-copy": "^3.5.0",
40
- "@vitest/runner": "3.2.2"
40
+ "@vitest/runner": "3.2.3"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "rimraf dist && rollup -c",