Socket
Socket
Sign inDemoInstall

@vitest/expect

Package Overview
Dependencies
Maintainers
4
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 1.5.0 to 1.5.1

25

dist/index.js

@@ -307,3 +307,3 @@ import { getType, getColors, stringify, isObject, assertTypes } from '@vitest/utils';

b2,
[...filteredCustomTesters],
[...customTesters],
[...aStack],

@@ -386,3 +386,3 @@ [...bStack]

return Object.keys(subset2).every((key) => {
if (isObjectWithKeys(subset2[key])) {
if (typeof subset2[key] === "object") {
if (seenReferences.has(subset2[key]))

@@ -935,13 +935,14 @@ return equals(object2[key], subset2[key], filteredCustomTesters);

const { subset: actualSubset, stripped } = getObjectSubset(actual, expected);
const msg = utils.getMessage(
this,
[
pass,
"expected #{this} to match object #{exp}",
"expected #{this} to not match object #{exp}",
expected,
actualSubset
]
);
if (pass && isNot || !pass && !isNot) {
const msg = utils.getMessage(
this,
[
pass,
"expected #{this} to match object #{exp}",
"expected #{this} to not match object #{exp}",
expected,
actualSubset,
false
]
);
const message = stripped === 0 ? msg : `${msg}

@@ -948,0 +949,0 @@ (${stripped} matching ${stripped === 1 ? "property" : "properties"} omitted from actual)`;

{
"name": "@vitest/expect",
"type": "module",
"version": "1.5.0",
"version": "1.5.1",
"description": "Jest's expect matchers as a Chai plugin",

@@ -34,4 +34,4 @@ "license": "MIT",

"chai": "^4.3.10",
"@vitest/utils": "1.5.0",
"@vitest/spy": "1.5.0"
"@vitest/spy": "1.5.1",
"@vitest/utils": "1.5.1"
},

@@ -42,3 +42,3 @@ "devDependencies": {

"rollup-plugin-copy": "^3.5.0",
"@vitest/runner": "1.5.0"
"@vitest/runner": "1.5.1"
},

@@ -45,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