@storybook/addon-vitest 9.1.0-alpha.3 → 9.1.0-alpha.4

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/index.d.ts CHANGED
@@ -1,19 +1,5 @@
1
- import * as core_dist_types from 'storybook/internal/types';
1
+ import * as storybook_internal_csf from 'storybook/internal/csf';
2
2
 
3
- interface TestParameters {
4
- /**
5
- * Test addon configuration
6
- *
7
- * @see https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon
8
- */
9
- test: {
10
- /** Ignore unhandled errors during test execution */
11
- dangerouslyIgnoreUnhandledErrors?: boolean;
12
- /** Whether to throw exceptions coming from the play function */
13
- throwPlayFunctionExceptions?: boolean;
14
- };
15
- }
3
+ declare const _default: () => storybook_internal_csf.PreviewAddon<storybook_internal_csf.AddonTypes>;
16
4
 
17
- declare const _default: () => core_dist_types.ProjectAnnotations<core_dist_types.Renderer>;
18
-
19
- export { TestParameters, _default as default };
5
+ export { _default as default };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var previewApi = require('storybook/preview-api');
3
+ var csf = require('storybook/internal/csf');
4
4
 
5
- var index_default=()=>previewApi.definePreview({});
5
+ var index_default=()=>csf.definePreviewAddon({});
6
6
 
7
7
  module.exports = index_default;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { definePreview } from 'storybook/preview-api';
1
+ import { definePreviewAddon } from 'storybook/internal/csf';
2
2
 
3
- var index_default=()=>definePreview({});
3
+ var index_default=()=>definePreviewAddon({});
4
4
 
5
5
  export { index_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-vitest",
3
- "version": "9.1.0-alpha.3",
3
+ "version": "9.1.0-alpha.4",
4
4
  "description": "Storybook addon for testing components",
5
5
  "keywords": [
6
6
  "storybook-addons",
@@ -124,7 +124,7 @@
124
124
  "peerDependencies": {
125
125
  "@vitest/browser": "^3.0.0",
126
126
  "@vitest/runner": "^3.0.0",
127
- "storybook": "^9.1.0-alpha.3",
127
+ "storybook": "^9.1.0-alpha.4",
128
128
  "vitest": "^3.0.0"
129
129
  },
130
130
  "peerDependenciesMeta": {