diff --git a/code/presets/react-webpack/package.json b/code/presets/react-webpack/package.json index 244f773974b..ec9f5706378 100644 --- a/code/presets/react-webpack/package.json +++ b/code/presets/react-webpack/package.json @@ -81,11 +81,15 @@ "typescript": "^5.3.2" }, "peerDependencies": { + "@storybook/test": "workspace:*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "storybook": "workspace:^" }, "peerDependenciesMeta": { + "@storybook/test": { + "optional": true + }, "typescript": { "optional": true } diff --git a/code/yarn.lock b/code/yarn.lock index 81621dd31f6..2eb119eb47c 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -8319,10 +8319,13 @@ __metadata: typescript: "npm:^5.3.2" webpack: "npm:5" peerDependencies: + "@storybook/test": "workspace:*" react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta storybook: "workspace:^" peerDependenciesMeta: + "@storybook/test": + optional: true typescript: optional: true languageName: unknown