@vitest/expect 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -5
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1276,8 +1276,7 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
1276
1276
  `expected error to be instance of ${name}`,
1277
1277
  `expected error not to be instance of ${name}`,
1278
1278
  expected,
1279
- thrown,
1280
- false
1279
+ thrown
1281
1280
  );
1282
1281
  }
1283
1282
  if (expected instanceof Error) {
@@ -1295,9 +1294,8 @@ Number of calls: ${c().bold(spy.mock.calls.length)}
1295
1294
  thrown && matcher.asymmetricMatch(thrown),
1296
1295
  "expected error to match asymmetric matcher",
1297
1296
  "expected error not to match asymmetric matcher",
1298
- matcher.toString(),
1299
- thrown,
1300
- false
1297
+ matcher,
1298
+ thrown
1301
1299
  );
1302
1300
  }
1303
1301
  throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof expected}"`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/expect",
3
3
  "type": "module",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "description": "Jest's expect matchers as a Chai plugin",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -31,14 +31,14 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "chai": "^4.3.10",
34
- "@vitest/spy": "1.2.1",
35
- "@vitest/utils": "1.2.1"
34
+ "@vitest/spy": "1.2.2",
35
+ "@vitest/utils": "1.2.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/chai": "4.3.6",
39
39
  "picocolors": "^1.0.0",
40
40
  "rollup-plugin-copy": "^3.5.0",
41
- "@vitest/runner": "1.2.1"
41
+ "@vitest/runner": "1.2.2"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "rimraf dist && rollup -c",