mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 01:31:06 +08:00
Fix failing unit tests
This commit is contained in:
parent
8537b2461e
commit
bfc4e77d7a
@ -97,6 +97,7 @@
|
||||
"@angular/platform-browser-dynamic": "^11.2.14",
|
||||
"@nrwl/workspace": "^11.6.3",
|
||||
"@types/autoprefixer": "^9.7.2",
|
||||
"@types/tmp": "^0.2.3",
|
||||
"cross-spawn": "^7.0.3",
|
||||
"jest": "^26.6.3",
|
||||
"jest-preset-angular": "^8.3.2",
|
||||
|
@ -16,7 +16,8 @@ import {
|
||||
StylePreprocessorOptions,
|
||||
} from '@angular-devkit/build-angular';
|
||||
|
||||
import buildStandalone, { StandaloneOptions } from '../../../standalone';
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import buildStandalone, { StandaloneOptions } from '@storybook/angular/standalone';
|
||||
import { runCompodoc } from '../utils/run-compodoc';
|
||||
import { buildStandaloneErrorHandler } from '../utils/build-standalone-errors-handler';
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -11,4 +11,4 @@ export default {
|
||||
export const Default = () => ({
|
||||
render: (h) => h(App),
|
||||
});
|
||||
// Default.storyName = 'App';
|
||||
Default.storyName = 'App';
|
||||
|
@ -6,7 +6,7 @@ Object {
|
||||
"NODE_MODULES/@storybook/addon-ie11/dist/event-source-polyfill.js",
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
||||
"ROOT/lib/core-client/dist/esm/manager/index.js",
|
||||
"ROOT/addons/docs/dist/esm/register.js",
|
||||
"ROOT/addons/docs/dist/esm/register",
|
||||
"ROOT/addons/controls/dist/esm/register.js",
|
||||
"ROOT/addons/actions/dist/esm/register.js",
|
||||
"ROOT/addons/backgrounds/dist/esm/register.js",
|
||||
|
@ -6,7 +6,7 @@ Object {
|
||||
"NODE_MODULES/@storybook/addon-ie11/dist/event-source-polyfill.js",
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
||||
"ROOT/lib/core-client/dist/esm/manager/index.js",
|
||||
"ROOT/addons/docs/dist/esm/register.js",
|
||||
"ROOT/addons/docs/dist/esm/register",
|
||||
"ROOT/addons/controls/dist/esm/register.js",
|
||||
"ROOT/addons/actions/dist/esm/register.js",
|
||||
"ROOT/addons/backgrounds/dist/esm/register.js",
|
||||
|
@ -8,8 +8,8 @@ Object {
|
||||
"NODE_MODULES/webpack-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined",
|
||||
"NODE_MODULES/@storybook/addon-ie11/dist/event-source-polyfill.js",
|
||||
"ROOT/storybook-init-framework-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/react/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config-generated-config-entry.js",
|
||||
"ROOT/app/react/dist/esm/client/docs/config-generated-config-entry.js",
|
||||
"ROOT/app/react/dist/esm/client/preview/config-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addDecorator.js-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addArgs.js-generated-config-entry.js",
|
||||
@ -86,7 +86,7 @@ Object {
|
||||
"babelrc": false,
|
||||
"cacheCompression": false,
|
||||
"cacheDirectory": true,
|
||||
"cacheIdentifier": "development:babel-plugin-named-asset-import@0.3.8:babel-preset-react-app@10.0.1:react-dev-utils@11.0.4:react-scripts@4.0.3",
|
||||
"cacheIdentifier": "development:babel-plugin-named-asset-import@:babel-preset-react-app@10.0.1:react-dev-utils@11.0.4:react-scripts@4.0.3",
|
||||
"compact": false,
|
||||
"configFile": false,
|
||||
"customize": "NODE_MODULES/babel-preset-react-app/webpack-overrides.js",
|
||||
@ -147,7 +147,7 @@ Object {
|
||||
"babelrc": false,
|
||||
"cacheCompression": false,
|
||||
"cacheDirectory": true,
|
||||
"cacheIdentifier": "development:babel-plugin-named-asset-import@0.3.8:babel-preset-react-app@10.0.1:react-dev-utils@11.0.4:react-scripts@4.0.3",
|
||||
"cacheIdentifier": "development:babel-plugin-named-asset-import@:babel-preset-react-app@10.0.1:react-dev-utils@11.0.4:react-scripts@4.0.3",
|
||||
"compact": false,
|
||||
"configFile": false,
|
||||
"inputSourceMap": true,
|
||||
|
@ -7,8 +7,8 @@ Object {
|
||||
"ROOT/lib/core-client/dist/esm/globals/globals.js",
|
||||
"NODE_MODULES/@storybook/addon-ie11/dist/event-source-polyfill.js",
|
||||
"ROOT/storybook-init-framework-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/react/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config-generated-config-entry.js",
|
||||
"ROOT/app/react/dist/esm/client/docs/config-generated-config-entry.js",
|
||||
"ROOT/app/react/dist/esm/client/preview/config-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addDecorator.js-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addArgs.js-generated-config-entry.js",
|
||||
@ -85,7 +85,7 @@ Object {
|
||||
"babelrc": false,
|
||||
"cacheCompression": false,
|
||||
"cacheDirectory": true,
|
||||
"cacheIdentifier": "production:babel-plugin-named-asset-import@0.3.8:babel-preset-react-app@10.0.1:react-dev-utils@11.0.4:react-scripts@4.0.3",
|
||||
"cacheIdentifier": "production:babel-plugin-named-asset-import@:babel-preset-react-app@10.0.1:react-dev-utils@11.0.4:react-scripts@4.0.3",
|
||||
"compact": true,
|
||||
"configFile": false,
|
||||
"customize": "NODE_MODULES/babel-preset-react-app/webpack-overrides.js",
|
||||
@ -145,7 +145,7 @@ Object {
|
||||
"babelrc": false,
|
||||
"cacheCompression": false,
|
||||
"cacheDirectory": true,
|
||||
"cacheIdentifier": "production:babel-plugin-named-asset-import@0.3.8:babel-preset-react-app@10.0.1:react-dev-utils@11.0.4:react-scripts@4.0.3",
|
||||
"cacheIdentifier": "production:babel-plugin-named-asset-import@:babel-preset-react-app@10.0.1:react-dev-utils@11.0.4:react-scripts@4.0.3",
|
||||
"compact": false,
|
||||
"configFile": false,
|
||||
"inputSourceMap": true,
|
||||
|
@ -5,7 +5,7 @@ Object {
|
||||
"entry": Array [
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
||||
"ROOT/lib/core-client/dist/esm/manager/index.js",
|
||||
"ROOT/addons/docs/dist/esm/register.js",
|
||||
"ROOT/addons/docs/dist/esm/register",
|
||||
"ROOT/addons/a11y/dist/esm/register.js",
|
||||
"ROOT/addons/actions/dist/esm/register.js",
|
||||
"ROOT/addons/backgrounds/dist/esm/register.js",
|
||||
|
@ -5,7 +5,7 @@ Object {
|
||||
"entry": Array [
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
||||
"ROOT/lib/core-client/dist/esm/manager/index.js",
|
||||
"ROOT/addons/docs/dist/esm/register.js",
|
||||
"ROOT/addons/docs/dist/esm/register",
|
||||
"ROOT/addons/a11y/dist/esm/register.js",
|
||||
"ROOT/addons/actions/dist/esm/register.js",
|
||||
"ROOT/addons/backgrounds/dist/esm/register.js",
|
||||
|
@ -7,9 +7,9 @@ Object {
|
||||
"ROOT/lib/core-client/dist/esm/globals/globals.js",
|
||||
"NODE_MODULES/webpack-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined",
|
||||
"ROOT/storybook-init-framework-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/html/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config-generated-config-entry.js",
|
||||
"ROOT/app/html/dist/esm/client/preview/config-generated-config-entry.js",
|
||||
"ROOT/app/html/dist/esm/client/docs/config-generated-config-entry.js",
|
||||
"ROOT/addons/a11y/dist/esm/a11yRunner.js-generated-config-entry.js",
|
||||
"ROOT/addons/a11y/dist/esm/a11yHighlight.js-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addDecorator.js-generated-config-entry.js",
|
||||
|
@ -6,9 +6,9 @@ Object {
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
||||
"ROOT/lib/core-client/dist/esm/globals/globals.js",
|
||||
"ROOT/storybook-init-framework-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/html/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config-generated-config-entry.js",
|
||||
"ROOT/app/html/dist/esm/client/preview/config-generated-config-entry.js",
|
||||
"ROOT/app/html/dist/esm/client/docs/config-generated-config-entry.js",
|
||||
"ROOT/addons/a11y/dist/esm/a11yRunner.js-generated-config-entry.js",
|
||||
"ROOT/addons/a11y/dist/esm/a11yHighlight.js-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addDecorator.js-generated-config-entry.js",
|
||||
|
@ -6,7 +6,7 @@ Object {
|
||||
"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/docs/dist/esm/register",
|
||||
"ROOT/addons/controls/dist/esm/register.js",
|
||||
"ROOT/addons/actions/dist/esm/register.js",
|
||||
"ROOT/addons/backgrounds/dist/esm/register.js",
|
||||
|
@ -6,7 +6,7 @@ Object {
|
||||
"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/docs/dist/esm/register",
|
||||
"ROOT/addons/controls/dist/esm/register.js",
|
||||
"ROOT/addons/actions/dist/esm/register.js",
|
||||
"ROOT/addons/backgrounds/dist/esm/register.js",
|
||||
|
@ -7,9 +7,9 @@ Object {
|
||||
"ROOT/lib/core-client/dist/esm/globals/globals.js",
|
||||
"NODE_MODULES/webpack-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined",
|
||||
"ROOT/storybook-init-framework-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/vue3/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config-generated-config-entry.js",
|
||||
"ROOT/app/vue3/dist/esm/client/preview/config-generated-config-entry.js",
|
||||
"ROOT/app/vue3/dist/esm/client/docs/config-generated-config-entry.js",
|
||||
"ROOT/addons/links/dist/esm/preset/addDecorator.js-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addDecorator.js-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addArgs.js-generated-config-entry.js",
|
||||
|
@ -6,9 +6,9 @@ Object {
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
||||
"ROOT/lib/core-client/dist/esm/globals/globals.js",
|
||||
"ROOT/storybook-init-framework-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/vue3/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config-generated-config-entry.js",
|
||||
"ROOT/app/vue3/dist/esm/client/preview/config-generated-config-entry.js",
|
||||
"ROOT/app/vue3/dist/esm/client/docs/config-generated-config-entry.js",
|
||||
"ROOT/addons/links/dist/esm/preset/addDecorator.js-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addDecorator.js-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addArgs.js-generated-config-entry.js",
|
||||
|
@ -5,7 +5,7 @@ Object {
|
||||
"entry": Array [
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
||||
"ROOT/lib/core-client/dist/esm/manager/index.js",
|
||||
"ROOT/addons/docs/dist/esm/register.js",
|
||||
"ROOT/addons/docs/dist/esm/register",
|
||||
"ROOT/addons/controls/dist/esm/register.js",
|
||||
"ROOT/addons/a11y/dist/esm/register.js",
|
||||
"ROOT/addons/actions/dist/esm/register.js",
|
||||
|
@ -5,7 +5,7 @@ Object {
|
||||
"entry": Array [
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
||||
"ROOT/lib/core-client/dist/esm/manager/index.js",
|
||||
"ROOT/addons/docs/dist/esm/register.js",
|
||||
"ROOT/addons/docs/dist/esm/register",
|
||||
"ROOT/addons/controls/dist/esm/register.js",
|
||||
"ROOT/addons/a11y/dist/esm/register.js",
|
||||
"ROOT/addons/actions/dist/esm/register.js",
|
||||
|
@ -7,9 +7,9 @@ Object {
|
||||
"ROOT/lib/core-client/dist/esm/globals/globals.js",
|
||||
"NODE_MODULES/webpack-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined",
|
||||
"ROOT/storybook-init-framework-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/web-components/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config-generated-config-entry.js",
|
||||
"ROOT/app/web-components/dist/esm/client/preview/config-generated-config-entry.js",
|
||||
"ROOT/app/web-components/dist/esm/client/docs/config-generated-config-entry.js",
|
||||
"ROOT/addons/a11y/dist/esm/a11yRunner.js-generated-config-entry.js",
|
||||
"ROOT/addons/a11y/dist/esm/a11yHighlight.js-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addDecorator.js-generated-config-entry.js",
|
||||
|
@ -6,9 +6,9 @@ Object {
|
||||
"ROOT/lib/core-client/dist/esm/globals/polyfills.js",
|
||||
"ROOT/lib/core-client/dist/esm/globals/globals.js",
|
||||
"ROOT/storybook-init-framework-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/web-components/config.js-generated-config-entry.js",
|
||||
"ROOT/addons/docs/dist/esm/frameworks/common/config-generated-config-entry.js",
|
||||
"ROOT/app/web-components/dist/esm/client/preview/config-generated-config-entry.js",
|
||||
"ROOT/app/web-components/dist/esm/client/docs/config-generated-config-entry.js",
|
||||
"ROOT/addons/a11y/dist/esm/a11yRunner.js-generated-config-entry.js",
|
||||
"ROOT/addons/a11y/dist/esm/a11yHighlight.js-generated-config-entry.js",
|
||||
"ROOT/addons/actions/dist/esm/preset/addDecorator.js-generated-config-entry.js",
|
||||
|
@ -6864,6 +6864,7 @@ __metadata:
|
||||
"@types/node": ^14.14.20 || ^16.0.0
|
||||
"@types/react": ^16.14.23
|
||||
"@types/react-dom": ^16.9.14
|
||||
"@types/tmp": ^0.2.3
|
||||
"@types/webpack-env": ^1.16.0
|
||||
autoprefixer: ^9.8.6
|
||||
core-js: ^3.8.2
|
||||
@ -10322,6 +10323,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/tmp@npm:^0.2.3":
|
||||
version: 0.2.3
|
||||
resolution: "@types/tmp@npm:0.2.3"
|
||||
checksum: a9a32d723b483713ef537af31caddfcc2129ba21a0d56f5e4eef39508e07d415b1ec7327486d15b2cd4ac277deaaef0f8368ed1a0f4029e5ef5c393f9c15856b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/trusted-types@npm:^2.0.2":
|
||||
version: 2.0.2
|
||||
resolution: "@types/trusted-types@npm:2.0.2"
|
||||
|
Loading…
x
Reference in New Issue
Block a user