mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
Leftover renamings from experimental-addon-test to addon-test
This commit is contained in:
parent
b753a880bd
commit
dbb9a5bb02
@ -22,7 +22,7 @@ export default mergeConfig(
|
||||
// @ts-expect-error added this because of testNamePattern below
|
||||
defineProject({
|
||||
plugins: [
|
||||
import('@storybook/experimental-addon-test/vitest-plugin').then(({ storybookTest }) =>
|
||||
import('@storybook/addon-test/vitest-plugin').then(({ storybookTest }) =>
|
||||
storybookTest({
|
||||
configDir: __dirname,
|
||||
tags: {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "experimental-addon-test",
|
||||
"name": "addon-test",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
|
@ -36,7 +36,7 @@ const INCLUDE_CANDIDATES = [
|
||||
'@storybook/addon-viewport/preview',
|
||||
'@storybook/blocks',
|
||||
'@storybook/components',
|
||||
'@storybook/experimental-addon-test/preview',
|
||||
'@storybook/addon-test/preview',
|
||||
'@storybook/experimental-nextjs-vite/dist/preview.mjs',
|
||||
'@storybook/html',
|
||||
'@storybook/html/dist/entry-preview-docs.mjs',
|
||||
|
@ -15,7 +15,7 @@ export default {
|
||||
'@storybook/addon-onboarding': '9.0.0-alpha.0',
|
||||
'@storybook/addon-outline': '9.0.0-alpha.0',
|
||||
'@storybook/addon-storysource': '9.0.0-alpha.0',
|
||||
'@storybook/experimental-addon-test': '9.0.0-alpha.0',
|
||||
'@storybook/addon-test': '9.0.0-alpha.0',
|
||||
'@storybook/addon-themes': '9.0.0-alpha.0',
|
||||
'@storybook/addon-toolbars': '9.0.0-alpha.0',
|
||||
'@storybook/addon-viewport': '9.0.0-alpha.0',
|
||||
|
@ -267,7 +267,7 @@ export async function vitestTransform({
|
||||
),
|
||||
t.importDeclaration(
|
||||
[t.importSpecifier(testStoryId, t.identifier('testStory'))],
|
||||
t.stringLiteral('@storybook/experimental-addon-test/internal/test-utils')
|
||||
t.stringLiteral('@storybook/addon-test/internal/test-utils')
|
||||
),
|
||||
];
|
||||
|
||||
|
@ -37,7 +37,7 @@ interface AddonA11yAddonTestOptions {
|
||||
}
|
||||
|
||||
/**
|
||||
* If addon-a11y and experimental-addon-test are already installed, we need to update
|
||||
* If addon-a11y and addon-test are already installed, we need to update
|
||||
*
|
||||
* - `.storybook/vitest.setup.<ts|js>` to set up project annotations from addon-a11y.
|
||||
* - `.storybook/preview.<ts|js>` to set up tags.
|
||||
|
@ -15,7 +15,7 @@ const projectJson = (name: string, framework: string, tags: string[]) => ({
|
||||
'test',
|
||||
'essentials',
|
||||
'interactions',
|
||||
'experimental-addon-test',
|
||||
'addon-test',
|
||||
'links',
|
||||
'onboarding',
|
||||
'blocks',
|
||||
|
@ -94,11 +94,7 @@ export const sandbox: Task = {
|
||||
// extraDeps.push('@testing-library/angular', '@analogjs/vitest-angular');
|
||||
// }
|
||||
|
||||
options.addon = [
|
||||
...options.addon,
|
||||
'@storybook/experimental-addon-test',
|
||||
'@storybook/addon-a11y',
|
||||
];
|
||||
options.addon = [...options.addon, '@storybook/addon-test', '@storybook/addon-a11y'];
|
||||
}
|
||||
|
||||
let startTime = now();
|
||||
|
@ -5,7 +5,7 @@ const config: StorybookConfig = {
|
||||
stories: ["../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
||||
addons: [
|
||||
"@storybook/addon-controls",
|
||||
"@storybook/experimental-addon-test",
|
||||
"@storybook/addon-test",
|
||||
"@storybook/addon-a11y",
|
||||
],
|
||||
framework: {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { defineWorkspace } from "vitest/config";
|
||||
import { storybookTest } from "@storybook/experimental-addon-test/vitest-plugin";
|
||||
import { storybookTest } from "@storybook/addon-test/vitest-plugin";
|
||||
|
||||
export default defineWorkspace([
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user