mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-29 05:04:31 +08:00
Fix snapshot tests
This commit is contained in:
parent
0c4de9ddbb
commit
b0919fa97e
@ -5,12 +5,10 @@ Object {
|
||||
"entry": Array [
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
||||
"ROOT/lib/core-client/dist/esm/manager/index.js",
|
||||
"ROOT/addons/links/dist/esm/register.js",
|
||||
"ROOT/addons/docs/dist/esm/register.js",
|
||||
"ROOT/addons/controls/dist/esm/register.js",
|
||||
"ROOT/addons/actions/dist/esm/register.js",
|
||||
"ROOT/addons/backgrounds/dist/esm/register.js",
|
||||
"ROOT/addons/viewport/dist/esm/register.js",
|
||||
"ROOT/addons/toolbars/dist/esm/register.js",
|
||||
"ROOT/examples/cra-ts-essentials/.storybook/generated-refs.js",
|
||||
],
|
||||
|
@ -5,12 +5,10 @@ Object {
|
||||
"entry": Array [
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
||||
"ROOT/lib/core-client/dist/esm/manager/index.js",
|
||||
"ROOT/addons/links/dist/esm/register.js",
|
||||
"ROOT/addons/docs/dist/esm/register.js",
|
||||
"ROOT/addons/controls/dist/esm/register.js",
|
||||
"ROOT/addons/actions/dist/esm/register.js",
|
||||
"ROOT/addons/backgrounds/dist/esm/register.js",
|
||||
"ROOT/addons/viewport/dist/esm/register.js",
|
||||
"ROOT/addons/toolbars/dist/esm/register.js",
|
||||
"ROOT/examples/cra-ts-essentials/.storybook/generated-refs.js",
|
||||
],
|
||||
|
@ -8,7 +8,6 @@ Object {
|
||||
"ROOT/examples/cra-ts-essentials/.storybook/storybook-init-framework-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config.js-generated-other-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/react/config.js-generated-other-entry.js",
|
||||
"ROOT/addons/links/dist/esm/preset/addDecorator.js-generated-other-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addDecorator.js-generated-other-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addArgs.js-generated-other-entry.js",
|
||||
"ROOT/addons/backgrounds/dist/esm/preset/addDecorator.js-generated-other-entry.js",
|
||||
@ -42,109 +41,6 @@ Object {
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/(stories|story)\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES/babel-loader/lib/index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES/.cache/storybook/babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/babel-plugin-react-docgen/lib/index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/@babel/plugin-transform-react-jsx/lib/index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES/@mdx-js/loader/index.js",
|
||||
"options": Object {
|
||||
"compilers": Array [
|
||||
[Function],
|
||||
],
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"exclude": "/(stories|story)\\\\.mdx$/",
|
||||
"test": "/\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES/babel-loader/lib/index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES/.cache/storybook/babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/babel-plugin-react-docgen/lib/index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/@babel/plugin-transform-react-jsx/lib/index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES/@mdx-js/loader/index.js",
|
||||
"options": Object {
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"enforce": "pre",
|
||||
"loader": "ROOT/lib/source-loader/dist/cjs/index.js",
|
||||
"options": Object {
|
||||
"injectStoryParameters": true,
|
||||
"inspectLocalDependencies": true,
|
||||
},
|
||||
"test": "/\\\\.(stories|story)\\\\.[tj]sx?$/",
|
||||
},
|
||||
Object {
|
||||
"parser": Object {
|
||||
"requireEnsure": false,
|
||||
@ -392,6 +288,128 @@ Object {
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"include": "NODE_MODULES\\\\/acorn-jsx/",
|
||||
"test": "/\\\\.js$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES/babel-loader/lib/index.js",
|
||||
"options": Object {
|
||||
"presets": Array [
|
||||
Array [
|
||||
"NODE_MODULES/@babel/preset-env/lib/index.js",
|
||||
Object {
|
||||
"modules": "commonjs",
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/(stories|story)\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES/babel-loader/lib/index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES/.cache/storybook/babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/babel-plugin-react-docgen/lib/index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/@babel/plugin-transform-react-jsx/lib/index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES/@mdx-js/loader/index.js",
|
||||
"options": Object {
|
||||
"compilers": Array [
|
||||
[Function],
|
||||
],
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"exclude": "/(stories|story)\\\\.mdx$/",
|
||||
"test": "/\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES/babel-loader/lib/index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES/.cache/storybook/babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/babel-plugin-react-docgen/lib/index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/@babel/plugin-transform-react-jsx/lib/index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES/@mdx-js/loader/index.js",
|
||||
"options": Object {
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"enforce": "pre",
|
||||
"loader": "ROOT/lib/source-loader/dist/cjs/index.js",
|
||||
"options": Object {
|
||||
"injectStoryParameters": true,
|
||||
"inspectLocalDependencies": true,
|
||||
},
|
||||
"test": "/\\\\.(stories|story)\\\\.[tj]sx?$/",
|
||||
},
|
||||
],
|
||||
},
|
||||
"plugins": Array [
|
||||
|
@ -8,7 +8,6 @@ Object {
|
||||
"ROOT/examples/cra-ts-essentials/.storybook/storybook-init-framework-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config.js-generated-other-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/react/config.js-generated-other-entry.js",
|
||||
"ROOT/addons/links/dist/esm/preset/addDecorator.js-generated-other-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addDecorator.js-generated-other-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addArgs.js-generated-other-entry.js",
|
||||
"ROOT/addons/backgrounds/dist/esm/preset/addDecorator.js-generated-other-entry.js",
|
||||
@ -41,109 +40,6 @@ Object {
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/(stories|story)\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES/babel-loader/lib/index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES/.cache/storybook/babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/babel-plugin-react-docgen/lib/index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/@babel/plugin-transform-react-jsx/lib/index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES/@mdx-js/loader/index.js",
|
||||
"options": Object {
|
||||
"compilers": Array [
|
||||
[Function],
|
||||
],
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"exclude": "/(stories|story)\\\\.mdx$/",
|
||||
"test": "/\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES/babel-loader/lib/index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES/.cache/storybook/babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/babel-plugin-react-docgen/lib/index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/@babel/plugin-transform-react-jsx/lib/index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES/@mdx-js/loader/index.js",
|
||||
"options": Object {
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"enforce": "pre",
|
||||
"loader": "ROOT/lib/source-loader/dist/cjs/index.js",
|
||||
"options": Object {
|
||||
"injectStoryParameters": true,
|
||||
"inspectLocalDependencies": true,
|
||||
},
|
||||
"test": "/\\\\.(stories|story)\\\\.[tj]sx?$/",
|
||||
},
|
||||
Object {
|
||||
"parser": Object {
|
||||
"requireEnsure": false,
|
||||
@ -410,6 +306,128 @@ Object {
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"include": "NODE_MODULES\\\\/acorn-jsx/",
|
||||
"test": "/\\\\.js$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES/babel-loader/lib/index.js",
|
||||
"options": Object {
|
||||
"presets": Array [
|
||||
Array [
|
||||
"NODE_MODULES/@babel/preset-env/lib/index.js",
|
||||
Object {
|
||||
"modules": "commonjs",
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"test": "/(stories|story)\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES/babel-loader/lib/index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES/.cache/storybook/babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/babel-plugin-react-docgen/lib/index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/@babel/plugin-transform-react-jsx/lib/index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES/@mdx-js/loader/index.js",
|
||||
"options": Object {
|
||||
"compilers": Array [
|
||||
[Function],
|
||||
],
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"exclude": "/(stories|story)\\\\.mdx$/",
|
||||
"test": "/\\\\.mdx$/",
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "NODE_MODULES/babel-loader/lib/index.js",
|
||||
"options": Object {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": "NODE_MODULES/.cache/storybook/babel",
|
||||
"configFile": false,
|
||||
"overrides": Array [
|
||||
Object {
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/babel-plugin-react-docgen/lib/index.js",
|
||||
Object {
|
||||
"DOC_GEN_COLLECTION_NAME": "STORYBOOK_REACT_CLASSES",
|
||||
},
|
||||
],
|
||||
],
|
||||
"test": "/\\\\.(mjs|jsx?)$/",
|
||||
},
|
||||
],
|
||||
"plugins": Array [
|
||||
Array [
|
||||
"NODE_MODULES/@babel/plugin-transform-react-jsx/lib/index.js",
|
||||
Object {
|
||||
"pragma": "React.createElement",
|
||||
"pragmaFrag": "React.Fragment",
|
||||
},
|
||||
],
|
||||
],
|
||||
"presets": Array [],
|
||||
},
|
||||
},
|
||||
Object {
|
||||
"loader": "NODE_MODULES/@mdx-js/loader/index.js",
|
||||
"options": Object {
|
||||
"remarkPlugins": Array [
|
||||
[Function],
|
||||
[Function],
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"enforce": "pre",
|
||||
"loader": "ROOT/lib/source-loader/dist/cjs/index.js",
|
||||
"options": Object {
|
||||
"injectStoryParameters": true,
|
||||
"inspectLocalDependencies": true,
|
||||
},
|
||||
"test": "/\\\\.(stories|story)\\\\.[tj]sx?$/",
|
||||
},
|
||||
],
|
||||
},
|
||||
"plugins": Array [
|
||||
|
Loading…
x
Reference in New Issue
Block a user