@vitest/expect
Advanced tools
Comparing version 0.34.6 to 1.0.0-beta.0
@@ -1,2 +0,1 @@ | ||
import { use } from 'chai'; | ||
import { stringify, Constructable } from '@vitest/utils'; | ||
@@ -40,4 +39,11 @@ export { setupColors } from '@vitest/utils'; | ||
type FirstFunctionArgument<T> = T extends (arg: infer A) => unknown ? A : never; | ||
type ChaiPlugin = FirstFunctionArgument<typeof use>; | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
*/ | ||
type ChaiPlugin = Chai.ChaiPlugin; | ||
type Tester = (a: any, b: any) => boolean | undefined; | ||
@@ -258,2 +264,2 @@ | ||
export { Any, Anything, ArrayContaining, Assertion, AsymmetricMatcher, AsymmetricMatcherInterface, AsymmetricMatchersContaining, AsyncExpectationResult, ChaiPlugin, ExpectStatic, ExpectationResult, FirstFunctionArgument, GLOBAL_EXPECT, JEST_MATCHERS_OBJECT, JestAssertion, JestAsymmetricMatchers, JestChaiExpect, JestExtend, MATCHERS_OBJECT, MatcherHintOptions, MatcherState, MatchersObject, ObjectContaining, RawMatcherFn, StringContaining, StringMatching, SyncExpectationResult, Tester, arrayBufferEquality, equals, fnNameFor, generateToBeMessage, getState, hasAsymmetric, hasProperty, isA, isAsymmetric, isImmutableUnorderedKeyed, isImmutableUnorderedSet, iterableEquality, setState, sparseArrayEquality, subsetEquality, typeEquality }; | ||
export { Any, Anything, ArrayContaining, Assertion, AsymmetricMatcher, AsymmetricMatcherInterface, AsymmetricMatchersContaining, AsyncExpectationResult, ChaiPlugin, ExpectStatic, ExpectationResult, GLOBAL_EXPECT, JEST_MATCHERS_OBJECT, JestAssertion, JestAsymmetricMatchers, JestChaiExpect, JestExtend, MATCHERS_OBJECT, MatcherHintOptions, MatcherState, MatchersObject, ObjectContaining, RawMatcherFn, StringContaining, StringMatching, SyncExpectationResult, Tester, arrayBufferEquality, equals, fnNameFor, generateToBeMessage, getState, hasAsymmetric, hasProperty, isA, isAsymmetric, isImmutableUnorderedKeyed, isImmutableUnorderedSet, iterableEquality, setState, sparseArrayEquality, subsetEquality, typeEquality }; |
{ | ||
"name": "@vitest/expect", | ||
"type": "module", | ||
"version": "0.34.6", | ||
"version": "1.0.0-beta.0", | ||
"description": "Jest's expect matchers as a Chai plugin", | ||
@@ -20,3 +20,3 @@ "license": "MIT", | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"types": "./index.d.ts", | ||
"import": "./dist/index.js" | ||
@@ -28,3 +28,3 @@ }, | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"types": "./index.d.ts", | ||
"files": [ | ||
@@ -35,8 +35,10 @@ "dist" | ||
"chai": "^4.3.10", | ||
"@vitest/utils": "0.34.6", | ||
"@vitest/spy": "0.34.6" | ||
"@vitest/utils": "1.0.0-beta.0", | ||
"@vitest/spy": "1.0.0-beta.0" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.3.6", | ||
"picocolors": "^1.0.0", | ||
"@vitest/runner": "0.34.6" | ||
"rollup-plugin-copy": "^3.5.0", | ||
"@vitest/runner": "1.0.0-beta.0" | ||
}, | ||
@@ -43,0 +45,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179610
7
4838
4
5
+ Added@vitest/spy@1.0.0-beta.0(transitive)
+ Added@vitest/utils@1.0.0-beta.0(transitive)
- Removed@vitest/spy@0.34.6(transitive)
- Removed@vitest/utils@0.34.6(transitive)
Updated@vitest/spy@1.0.0-beta.0
Updated@vitest/utils@1.0.0-beta.0