@storybook/addon-vitest 0.0.0-pr-32810-sha-b3901628 → 0.0.0-pr-32717-sha-6b32df73

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.
@@ -1,38 +1,37 @@
1
- import CJS_COMPAT_NODE_URL_w2xsksad47 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_w2xsksad47 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_w2xsksad47 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hwd9utotfy8 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hwd9utotfy8 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hwd9utotfy8 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_w2xsksad47.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_w2xsksad47.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_w2xsksad47.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hwd9utotfy8.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hwd9utotfy8.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hwd9utotfy8.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  log
14
- } from "../_node-chunks/chunk-GYWWM3SC.js";
14
+ } from "../_node-chunks/chunk-REWDQMPP.js";
15
15
  import {
16
- any,
17
- errorToErrorLike
18
- } from "../_node-chunks/chunk-H6JZJZLI.js";
16
+ any
17
+ } from "../_node-chunks/chunk-NC7DRZM4.js";
19
18
  import {
20
19
  ADDON_ID,
21
20
  COVERAGE_DIRECTORY,
22
21
  STATUS_TYPE_ID_A11Y,
23
22
  STATUS_TYPE_ID_COMPONENT_TEST,
24
23
  storeOptions
25
- } from "../_node-chunks/chunk-6MS5DPHO.js";
26
- import "../_node-chunks/chunk-RYSV2QII.js";
24
+ } from "../_node-chunks/chunk-KIUHNMC3.js";
25
+ import "../_node-chunks/chunk-WKSVA3OK.js";
27
26
  import {
28
27
  dirname,
29
28
  join,
30
29
  normalize,
31
30
  path
32
- } from "../_node-chunks/chunk-LZCJ7HPK.js";
31
+ } from "../_node-chunks/chunk-7U3E5OTZ.js";
33
32
  import {
34
33
  __name
35
- } from "../_node-chunks/chunk-UHNP62OV.js";
34
+ } from "../_node-chunks/chunk-RU4LPJPR.js";
36
35
 
37
36
  // src/node/vitest.ts
38
37
  import process2 from "node:process";
@@ -174,6 +173,18 @@ function throttle(func, throttleMs, { signal, edges = ["leading", "trailing"] }
174
173
  }
175
174
  __name(throttle, "throttle");
176
175
 
176
+ // src/utils.ts
177
+ function errorToErrorLike(error) {
178
+ return {
179
+ message: error.message,
180
+ name: error.name,
181
+ // avoid duplicating the error message in the stack trace
182
+ stack: error.stack?.replace(error.message, ""),
183
+ cause: error.cause && error.cause instanceof Error ? errorToErrorLike(error.cause) : void 0
184
+ };
185
+ }
186
+ __name(errorToErrorLike, "errorToErrorLike");
187
+
177
188
  // src/node/vitest-manager.ts
178
189
  import { existsSync } from "node:fs";
179
190
  import { getProjectRoot, resolvePathInStorybookCache } from "storybook/internal/common";