@vitest/snapshot 4.0.0-beta.5 → 4.0.0-beta.7

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 (3) hide show
  1. package/LICENSE +1 -1
  2. package/dist/index.js +0 -18
  3. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021-Present Vitest Team
3
+ Copyright (c) 2021-Present VoidZero Inc. and Vitest contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.js CHANGED
@@ -790,24 +790,6 @@ function parseErrorStacktrace(e, options = {}) {
790
790
  return stackFrames;
791
791
  }
792
792
 
793
- let getPromiseValue = () => 'Promise{…}';
794
- try {
795
- // @ts-ignore
796
- const { getPromiseDetails, kPending, kRejected } = process.binding('util');
797
- if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
798
- getPromiseValue = (value, options) => {
799
- const [state, innerValue] = getPromiseDetails(value);
800
- if (state === kPending) {
801
- return 'Promise{<pending>}';
802
- }
803
- return `Promise${state === kRejected ? '!' : ''}{${options.inspect(innerValue, options)}}`;
804
- };
805
- }
806
- }
807
- catch (notNode) {
808
- /* ignore */
809
- }
810
-
811
793
  const { AsymmetricMatcher: AsymmetricMatcher$1, DOMCollection: DOMCollection$1, DOMElement: DOMElement$1, Immutable: Immutable$1, ReactElement: ReactElement$1, ReactTestComponent: ReactTestComponent$1 } = plugins;
812
794
 
813
795
  function getDefaultExportFromCjs (x) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/snapshot",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.5",
4
+ "version": "4.0.0-beta.7",
5
5
  "description": "Vitest snapshot manager",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -40,12 +40,12 @@
40
40
  "dependencies": {
41
41
  "magic-string": "^0.30.17",
42
42
  "pathe": "^2.0.3",
43
- "@vitest/pretty-format": "4.0.0-beta.5"
43
+ "@vitest/pretty-format": "4.0.0-beta.7"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/natural-compare": "^1.4.3",
47
47
  "natural-compare": "^1.4.0",
48
- "@vitest/utils": "4.0.0-beta.5"
48
+ "@vitest/utils": "4.0.0-beta.7"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "rimraf dist && rollup -c",