@vitest/expect 2.0.0-beta.9 → 2.0.1

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/README.md CHANGED
@@ -6,7 +6,11 @@ Jest's expect matchers as a Chai plugin.
6
6
 
7
7
  ```js
8
8
  import * as chai from 'chai'
9
- import { JestAsymmetricMatchers, JestChaiExpect, JestExtend } from '@vitest/expect'
9
+ import {
10
+ JestAsymmetricMatchers,
11
+ JestChaiExpect,
12
+ JestExtend,
13
+ } from '@vitest/expect'
10
14
 
11
15
  // allows using expect.extend instead of chai.use to extend plugins
12
16
  chai.use(JestExtend)
package/dist/index.d.ts CHANGED
@@ -190,7 +190,7 @@ declare class StringContaining extends AsymmetricMatcher<string> {
190
190
  getExpectedType(): string;
191
191
  }
192
192
  declare class Anything extends AsymmetricMatcher<void> {
193
- asymmetricMatch(other: unknown): boolean;
193
+ asymmetricMatch(other: unknown): other is {};
194
194
  toString(): string;
195
195
  toAsymmetricMatcher(): string;
196
196
  }