@storybook/addon-vitest 0.0.0-pr-31311-sha-927762ce → 0.0.0-pr-31819-sha-dc7e86b3

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/_browser-chunks/chunk-JFJ5UJ7Q.js +11 -0
  2. package/dist/_browser-chunks/chunk-PMYV6BH2.js +76 -0
  3. package/dist/_node-chunks/chunk-25O5SVIM.js +6873 -0
  4. package/dist/_node-chunks/chunk-3EUT2BMY.js +103 -0
  5. package/dist/_node-chunks/chunk-CH4X2FJX.js +247 -0
  6. package/dist/_node-chunks/chunk-N5JG56NT.js +295 -0
  7. package/dist/_node-chunks/chunk-O7XSKP6J.js +91 -0
  8. package/dist/_node-chunks/chunk-ORH7C7ZG.js +481 -0
  9. package/dist/_node-chunks/chunk-PJERO7S2.js +2264 -0
  10. package/dist/_node-chunks/chunk-ZUQ3ULQ5.js +55 -0
  11. package/dist/index.js +9 -6
  12. package/dist/manager.js +7516 -8
  13. package/dist/node/coverage-reporter.js +1898 -4
  14. package/dist/node/vitest.js +740 -17
  15. package/dist/postinstall.js +2072 -88
  16. package/dist/preset.js +360 -31
  17. package/dist/vitest-plugin/global-setup.js +200 -6
  18. package/dist/vitest-plugin/index.js +3823 -43
  19. package/dist/vitest-plugin/setup-file.js +30 -8
  20. package/dist/vitest-plugin/test-utils.js +102 -8
  21. package/manager.js +1 -1
  22. package/package.json +16 -89
  23. package/preset.js +1 -1
  24. package/dist/chunk-55WZLVGN.mjs +0 -11
  25. package/dist/chunk-JKRQGT2U.mjs +0 -10
  26. package/dist/index.mjs +0 -5
  27. package/dist/node/coverage-reporter.d.ts +0 -184
  28. package/dist/node/coverage-reporter.mjs +0 -12
  29. package/dist/node/vitest.d.ts +0 -2
  30. package/dist/node/vitest.mjs +0 -19
  31. package/dist/vitest-plugin/global-setup.d.ts +0 -6
  32. package/dist/vitest-plugin/global-setup.mjs +0 -13
  33. package/dist/vitest-plugin/index.mjs +0 -28
  34. package/dist/vitest-plugin/setup-file.d.ts +0 -14
  35. package/dist/vitest-plugin/setup-file.mjs +0 -9
  36. package/dist/vitest-plugin/test-utils.d.ts +0 -20
  37. package/dist/vitest-plugin/test-utils.mjs +0 -8
  38. package/manager.mjs +0 -1
  39. package/postinstall.js +0 -1
  40. package/postinstall.mjs +0 -1
  41. package/preset.mjs +0 -1
@@ -0,0 +1,55 @@
1
+ import CJS_COMPAT_NODE_URL_njqfnofv4rp from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_njqfnofv4rp from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_njqfnofv4rp from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_njqfnofv4rp.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_njqfnofv4rp.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_njqfnofv4rp.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ var __create = Object.create;
13
+ var __defProp = Object.defineProperty;
14
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15
+ var __getOwnPropNames = Object.getOwnPropertyNames;
16
+ var __getProtoOf = Object.getPrototypeOf;
17
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
18
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
19
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
20
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
21
+ }) : x)(function(x) {
22
+ if (typeof require !== "undefined") return require.apply(this, arguments);
23
+ throw Error('Dynamic require of "' + x + '" is not supported');
24
+ });
25
+ var __commonJS = (cb, mod) => function __require2() {
26
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
27
+ };
28
+ var __export = (target, all) => {
29
+ for (var name in all)
30
+ __defProp(target, name, { get: all[name], enumerable: true });
31
+ };
32
+ var __copyProps = (to, from, except, desc) => {
33
+ if (from && typeof from === "object" || typeof from === "function") {
34
+ for (let key of __getOwnPropNames(from))
35
+ if (!__hasOwnProp.call(to, key) && key !== except)
36
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
37
+ }
38
+ return to;
39
+ };
40
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
41
+ // If the importer is in node compatibility mode or this is not an ESM
42
+ // file that has been converted to a CommonJS file using a Babel-
43
+ // compatible transform (i.e. "__esModule" has not been set), then set
44
+ // "default" to the CommonJS "module.exports" for node compatibility.
45
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
46
+ mod
47
+ ));
48
+
49
+ export {
50
+ __name,
51
+ __require,
52
+ __commonJS,
53
+ __export,
54
+ __toESM
55
+ };
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
- 'use strict';
1
+ import {
2
+ __name
3
+ } from "./_browser-chunks/chunk-JFJ5UJ7Q.js";
2
4
 
3
- var csf = require('storybook/internal/csf');
4
-
5
- var index_default=()=>csf.definePreviewAddon({});
6
-
7
- module.exports = index_default;
5
+ // src/index.ts
6
+ import { definePreviewAddon } from "storybook/internal/csf";
7
+ var index_default = /* @__PURE__ */ __name(() => definePreviewAddon({}), "default");
8
+ export {
9
+ index_default as default
10
+ };