@vitest/expect
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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 { |
{ | ||
"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": { |
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
138973
1784
+ Added@vitest/spy@1.2.1(transitive)
+ Added@vitest/utils@1.2.1(transitive)
- Removed@vitest/spy@1.2.0(transitive)
- Removed@vitest/utils@1.2.0(transitive)
Updated@vitest/spy@1.2.1
Updated@vitest/utils@1.2.1