Socket
Socket
Sign inDemoInstall

@vitest/expect

Package Overview
Dependencies
Maintainers
3
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/expect - npm Package Compare versions

Comparing version 0.34.6 to 1.0.0-beta.0

dist/chai.d.ts

14

dist/index.d.ts

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc