@storybook/addon-vitest 0.0.0-pr-31819-sha-7e336af7 → 0.0.0-pr-31692-sha-e6b952d3

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 (41) hide show
  1. package/dist/chunk-55WZLVGN.mjs +11 -0
  2. package/dist/chunk-JKRQGT2U.mjs +10 -0
  3. package/dist/index.js +6 -9
  4. package/dist/index.mjs +5 -0
  5. package/dist/manager.js +8 -5571
  6. package/dist/node/coverage-reporter.d.ts +184 -0
  7. package/dist/node/coverage-reporter.js +4 -1395
  8. package/dist/node/coverage-reporter.mjs +12 -0
  9. package/dist/node/vitest.d.ts +2 -0
  10. package/dist/node/vitest.js +17 -563
  11. package/dist/node/vitest.mjs +19 -0
  12. package/dist/postinstall.js +93 -1170
  13. package/dist/preset.js +32 -268
  14. package/dist/vitest-plugin/global-setup.d.ts +6 -0
  15. package/dist/vitest-plugin/global-setup.js +6 -146
  16. package/dist/vitest-plugin/global-setup.mjs +13 -0
  17. package/dist/vitest-plugin/index.js +43 -2589
  18. package/dist/vitest-plugin/index.mjs +28 -0
  19. package/dist/vitest-plugin/setup-file.d.ts +14 -0
  20. package/dist/vitest-plugin/setup-file.js +9 -28
  21. package/dist/vitest-plugin/setup-file.mjs +9 -0
  22. package/dist/vitest-plugin/test-utils.d.ts +20 -0
  23. package/dist/vitest-plugin/test-utils.js +8 -68
  24. package/dist/vitest-plugin/test-utils.mjs +8 -0
  25. package/manager.js +1 -1
  26. package/manager.mjs +1 -0
  27. package/package.json +89 -16
  28. package/postinstall.js +1 -0
  29. package/postinstall.mjs +1 -0
  30. package/preset.js +1 -1
  31. package/preset.mjs +1 -0
  32. package/dist/_browser-chunks/chunk-A47P2DCZ.js +0 -11
  33. package/dist/_browser-chunks/chunk-VMSW5DPM.js +0 -60
  34. package/dist/_node-chunks/chunk-C4NXJJA3.js +0 -324
  35. package/dist/_node-chunks/chunk-CIKGVIS6.js +0 -223
  36. package/dist/_node-chunks/chunk-JSCRRX7J.js +0 -81
  37. package/dist/_node-chunks/chunk-KVKHJ5OL.js +0 -46
  38. package/dist/_node-chunks/chunk-L5EWH7GC.js +0 -5002
  39. package/dist/_node-chunks/chunk-N3OFRDD3.js +0 -80
  40. package/dist/_node-chunks/chunk-RCVH25XB.js +0 -1598
  41. package/dist/_node-chunks/chunk-W26ZMSD3.js +0 -143
@@ -1,80 +0,0 @@
1
- import CJS_COMPAT_NODE_URL from 'node:url';
2
- import CJS_COMPAT_NODE_PATH from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE from "node:module";
4
-
5
- const __filename = CJS_COMPAT_NODE_URL.fileURLToPath(import.meta.url);
6
- const __dirname = CJS_COMPAT_NODE_PATH.dirname(__filename);
7
- const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
8
- // ------------------------------------------------------------
9
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
10
- // ------------------------------------------------------------
11
- import {
12
- a as t,
13
- c as o
14
- } from "./chunk-KVKHJ5OL.js";
15
-
16
- // ../../node_modules/picocolors/picocolors.js
17
- var d = o((c, h) => {
18
- var l = process || {}, n = l.argv || [], g = l.env || {}, B = !(g.NO_COLOR || n.includes("--no-color")) && (!!g.FORCE_COLOR || n.includes("--color") || l.platform === "win32" || (l.stdout || {}).isTTY && g.TERM !== "dumb" || !!g.CI), u = /* @__PURE__ */ t((m, b, i = m) => (e) => {
19
- let r = "" + e, x = r.indexOf(b, m.length);
20
- return ~x ? m + s(r, b, i, x) + b : m + r + b;
21
- }, "formatter"), s = /* @__PURE__ */ t((m, b, i, e) => {
22
- let r = "", x = 0;
23
- do
24
- r += m.substring(x, e) + i, x = e + b.length, e = m.indexOf(b, x);
25
- while (~e);
26
- return r + m.substring(x);
27
- }, "replaceClose"), a = /* @__PURE__ */ t((m = B) => {
28
- let b = m ? u : () => String;
29
- return {
30
- isColorSupported: m,
31
- reset: b("\x1B[0m", "\x1B[0m"),
32
- bold: b("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
33
- dim: b("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
34
- italic: b("\x1B[3m", "\x1B[23m"),
35
- underline: b("\x1B[4m", "\x1B[24m"),
36
- inverse: b("\x1B[7m", "\x1B[27m"),
37
- hidden: b("\x1B[8m", "\x1B[28m"),
38
- strikethrough: b("\x1B[9m", "\x1B[29m"),
39
- black: b("\x1B[30m", "\x1B[39m"),
40
- red: b("\x1B[31m", "\x1B[39m"),
41
- green: b("\x1B[32m", "\x1B[39m"),
42
- yellow: b("\x1B[33m", "\x1B[39m"),
43
- blue: b("\x1B[34m", "\x1B[39m"),
44
- magenta: b("\x1B[35m", "\x1B[39m"),
45
- cyan: b("\x1B[36m", "\x1B[39m"),
46
- white: b("\x1B[37m", "\x1B[39m"),
47
- gray: b("\x1B[90m", "\x1B[39m"),
48
- bgBlack: b("\x1B[40m", "\x1B[49m"),
49
- bgRed: b("\x1B[41m", "\x1B[49m"),
50
- bgGreen: b("\x1B[42m", "\x1B[49m"),
51
- bgYellow: b("\x1B[43m", "\x1B[49m"),
52
- bgBlue: b("\x1B[44m", "\x1B[49m"),
53
- bgMagenta: b("\x1B[45m", "\x1B[49m"),
54
- bgCyan: b("\x1B[46m", "\x1B[49m"),
55
- bgWhite: b("\x1B[47m", "\x1B[49m"),
56
- blackBright: b("\x1B[90m", "\x1B[39m"),
57
- redBright: b("\x1B[91m", "\x1B[39m"),
58
- greenBright: b("\x1B[92m", "\x1B[39m"),
59
- yellowBright: b("\x1B[93m", "\x1B[39m"),
60
- blueBright: b("\x1B[94m", "\x1B[39m"),
61
- magentaBright: b("\x1B[95m", "\x1B[39m"),
62
- cyanBright: b("\x1B[96m", "\x1B[39m"),
63
- whiteBright: b("\x1B[97m", "\x1B[39m"),
64
- bgBlackBright: b("\x1B[100m", "\x1B[49m"),
65
- bgRedBright: b("\x1B[101m", "\x1B[49m"),
66
- bgGreenBright: b("\x1B[102m", "\x1B[49m"),
67
- bgYellowBright: b("\x1B[103m", "\x1B[49m"),
68
- bgBlueBright: b("\x1B[104m", "\x1B[49m"),
69
- bgMagentaBright: b("\x1B[105m", "\x1B[49m"),
70
- bgCyanBright: b("\x1B[106m", "\x1B[49m"),
71
- bgWhiteBright: b("\x1B[107m", "\x1B[49m")
72
- };
73
- }, "createColors");
74
- h.exports = a();
75
- h.exports.createColors = a;
76
- });
77
-
78
- export {
79
- d as a
80
- };