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 1.2.0 to 1.2.1

8

dist/index.js

@@ -472,2 +472,10 @@ import { getType, getColors, stringify, isObject, assertTypes } from '@vitest/utils';

}
// implement custom chai/loupe inspect for better AssertionError.message formatting
// https://github.com/chaijs/loupe/blob/9b8a6deabcd50adc056a64fb705896194710c5c6/src/index.ts#L29
[Symbol.for("chai/inspect")](options) {
const result = stringify(this, options.depth, { min: true });
if (result.length <= options.truncate)
return result;
return `${this.toString()}{\u2026}`;
}
}

@@ -474,0 +482,0 @@ class StringContaining extends AsymmetricMatcher {

8

package.json
{
"name": "@vitest/expect",
"type": "module",
"version": "1.2.0",
"version": "1.2.1",
"description": "Jest's expect matchers as a Chai plugin",

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

"chai": "^4.3.10",
"@vitest/spy": "1.2.0",
"@vitest/utils": "1.2.0"
"@vitest/spy": "1.2.1",
"@vitest/utils": "1.2.1"
},

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

"rollup-plugin-copy": "^3.5.0",
"@vitest/runner": "1.2.0"
"@vitest/runner": "1.2.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