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.28.4 to 0.28.5

4

dist/index.js

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

if (Array.isArray(args[0]))
args[0] = args[0].map((key) => key.replace(/([.[\]])/g, "\\$1")).join(".");
args[0] = args[0].map((key) => String(key).replace(/([.[\]])/g, "\\$1")).join(".");
const actual = this._obj;

@@ -1123,3 +1123,3 @@ const [propertyName, expected] = args;

const spyName = spy.getMockName();
const calledAndNotThrew = spy.mock.calls.length > 0 && !spy.mock.results.some(({ type }) => type === "throw");
const calledAndNotThrew = spy.mock.calls.length > 0 && spy.mock.results.some(({ type }) => type !== "throw");
this.assert(

@@ -1126,0 +1126,0 @@ calledAndNotThrew,

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

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

"chai": "^4.3.7",
"@vitest/spy": "0.28.4",
"@vitest/utils": "0.28.4"
"@vitest/utils": "0.28.5",
"@vitest/spy": "0.28.5"
},

@@ -32,0 +32,0 @@ "devDependencies": {

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