vite-plugin-storybook-nextjs 1.0.2--canary.10.8ef5a8f.0 → 1.0.2--canary.11.e6fc610.0
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/README.md
CHANGED
|
@@ -46,9 +46,9 @@ export default defineConfig({
|
|
|
46
46
|
|
|
47
47
|
This plugin is necessary to run portable stories in Vitest, as it provides the necessary Next.js features to ensure that your components are tested in an environment that closely mirrors production.
|
|
48
48
|
|
|
49
|
-
#### Experimental @storybook/experimental-vitest
|
|
49
|
+
#### Experimental @storybook/experimental-addon-vitest
|
|
50
50
|
|
|
51
|
-
The experimental `@storybook/experimental-vitest
|
|
51
|
+
The experimental `@storybook/experimental-addon-vitest` can be used to automatically transform your stories at Vitest runtime to in-memory test files. This allows you to run your stories in a Vitest environment without needing to manually transform your stories. Please visit https://github.com/storybookjs/vitest-plugin for more information.
|
|
52
52
|
|
|
53
53
|
## Configuration Options
|
|
54
54
|
|
|
@@ -4,7 +4,7 @@ import { RequestCookies } from 'next/dist/compiled/@edge-runtime/cookies/index.j
|
|
|
4
4
|
|
|
5
5
|
declare class RequestCookiesMock extends RequestCookies {
|
|
6
6
|
get: vitest.Mock<[name: string] | [next_dist_compiled__edge_runtime_cookies.RequestCookie], next_dist_compiled__edge_runtime_cookies.RequestCookie | undefined>;
|
|
7
|
-
getAll: vitest.Mock<[
|
|
7
|
+
getAll: vitest.Mock<[next_dist_compiled__edge_runtime_cookies.RequestCookie] | [name: string] | [], next_dist_compiled__edge_runtime_cookies.RequestCookie[]>;
|
|
8
8
|
has: vitest.Mock<[name: string], boolean>;
|
|
9
9
|
set: vitest.Mock<[key: string, value: string] | [options: next_dist_compiled__edge_runtime_cookies.RequestCookie], this>;
|
|
10
10
|
delete: vitest.Mock<[names: string | string[]], boolean | boolean[]>;
|
|
@@ -4,7 +4,7 @@ import { RequestCookies } from 'next/dist/compiled/@edge-runtime/cookies/index.j
|
|
|
4
4
|
|
|
5
5
|
declare class RequestCookiesMock extends RequestCookies {
|
|
6
6
|
get: vitest.Mock<[name: string] | [next_dist_compiled__edge_runtime_cookies.RequestCookie], next_dist_compiled__edge_runtime_cookies.RequestCookie | undefined>;
|
|
7
|
-
getAll: vitest.Mock<[
|
|
7
|
+
getAll: vitest.Mock<[next_dist_compiled__edge_runtime_cookies.RequestCookie] | [name: string] | [], next_dist_compiled__edge_runtime_cookies.RequestCookie[]>;
|
|
8
8
|
has: vitest.Mock<[name: string], boolean>;
|
|
9
9
|
set: vitest.Mock<[key: string, value: string] | [options: next_dist_compiled__edge_runtime_cookies.RequestCookie], this>;
|
|
10
10
|
delete: vitest.Mock<[names: string | string[]], boolean | boolean[]>;
|