@storybook/addon-vitest 0.0.0-pr-33094-sha-c1f2d631 → 0.0.0-pr-33092-sha-c8460b7a
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.
- package/dist/_node-chunks/{chunk-L6LYREIF.js → chunk-A4JN7TXM.js} +6 -6
- package/dist/_node-chunks/{chunk-TONSSRX5.js → chunk-BYNAAADB.js} +7 -7
- package/dist/_node-chunks/{chunk-SKXUTMCA.js → chunk-H6AFC5BW.js} +19 -7
- package/dist/_node-chunks/chunk-NRFGFKG2.js +1697 -0
- package/dist/_node-chunks/{chunk-BPA2JAHJ.js → chunk-PO7D7KB7.js} +31 -6
- package/dist/_node-chunks/chunk-QPB2GCIO.js +35 -0
- package/dist/_node-chunks/{chunk-VPW2UNCV.js → chunk-SXPPGPJV.js} +7 -7
- package/dist/_node-chunks/{chunk-DFA5NJUX.js → chunk-UVEHSNL5.js} +6 -6
- package/dist/manager.js +1 -1
- package/dist/node/coverage-reporter.js +8 -8
- package/dist/node/vitest.js +14 -24
- package/dist/postinstall.js +290 -152
- package/dist/preset.js +25 -30
- package/dist/vitest-plugin/global-setup.js +9 -8
- package/dist/vitest-plugin/index.js +32 -17
- package/dist/vitest-plugin/setup-file.js +1 -1
- package/package.json +7 -3
- package/dist/_node-chunks/chunk-JJT42EU5.js +0 -61
- package/dist/_node-chunks/chunk-R72QYSGY.js +0 -38
- package/dist/_node-chunks/chunk-XQUX3HHT.js +0 -158
- /package/dist/_browser-chunks/{chunk-TYJENCK5.js → chunk-ULSHVN74.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vshh9fntxdn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vshh9fntxdn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vshh9fntxdn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vshh9fntxdn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vshh9fntxdn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vshh9fntxdn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vshh9fntxdn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vshh9fntxdn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vshh9fntxdn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vshh9fntxdn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vshh9fntxdn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vshh9fntxdn.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
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A4JN7TXM.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_vshh9fntxdn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_vshh9fntxdn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_vshh9fntxdn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_vshh9fntxdn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_vshh9fntxdn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_vshh9fntxdn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -19,7 +19,18 @@ var UI_STATE_ID = `${ADDON_ID2}/ui`, RESULT = `${ADDON_ID2}/result`, REQUEST = `
|
|
|
19
19
|
|
|
20
20
|
// src/constants.ts
|
|
21
21
|
var ADDON_ID3 = "storybook/test", TEST_PROVIDER_ID = `${ADDON_ID3}/test-provider`, STORYBOOK_ADDON_TEST_CHANNEL = "STORYBOOK_ADDON_TEST_CHANNEL";
|
|
22
|
-
var DOCUMENTATION_LINK3 = "writing-tests/integrations/vitest-addon", DOCUMENTATION_FATAL_ERROR_LINK = `${DOCUMENTATION_LINK3}#what-happens-if-vitest-itself-has-an-error`, COVERAGE_DIRECTORY = "coverage",
|
|
22
|
+
var DOCUMENTATION_LINK3 = "writing-tests/integrations/vitest-addon", DOCUMENTATION_FATAL_ERROR_LINK = `${DOCUMENTATION_LINK3}#what-happens-if-vitest-itself-has-an-error`, COVERAGE_DIRECTORY = "coverage", SUPPORTED_FRAMEWORKS = [
|
|
23
|
+
"@storybook/nextjs",
|
|
24
|
+
"@storybook/nextjs-vite",
|
|
25
|
+
"@storybook/react-vite",
|
|
26
|
+
"@storybook/preact-vite",
|
|
27
|
+
"@storybook/svelte-vite",
|
|
28
|
+
"@storybook/vue3-vite",
|
|
29
|
+
"@storybook/html-vite",
|
|
30
|
+
"@storybook/web-components-vite",
|
|
31
|
+
"@storybook/sveltekit",
|
|
32
|
+
"@storybook/react-native-web-vite"
|
|
33
|
+
], storeOptions = {
|
|
23
34
|
id: ADDON_ID3,
|
|
24
35
|
initialState: {
|
|
25
36
|
config: {
|
|
@@ -62,6 +73,7 @@ export {
|
|
|
62
73
|
STORYBOOK_ADDON_TEST_CHANNEL,
|
|
63
74
|
DOCUMENTATION_LINK3 as DOCUMENTATION_LINK,
|
|
64
75
|
COVERAGE_DIRECTORY,
|
|
76
|
+
SUPPORTED_FRAMEWORKS,
|
|
65
77
|
storeOptions,
|
|
66
78
|
STORE_CHANNEL_EVENT_NAME,
|
|
67
79
|
STATUS_STORE_CHANNEL_EVENT_NAME,
|