From dd15eebc2c4e794964aff5d97f7ffcb199f7a873 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Tue, 12 Apr 2022 14:40:03 +0800 Subject: [PATCH] Fix standalone tests --- app/angular/package.json | 1 + app/angular/standalone.js | 2 +- app/ember/package.json | 1 + app/ember/standalone.js | 2 +- app/html/package.json | 1 + app/html/standalone.js | 2 +- app/preact/package.json | 1 + app/preact/standalone.js | 2 +- app/react/package.json | 1 + app/react/standalone.js | 2 +- app/server/package.json | 1 + app/server/standalone.js | 2 +- app/standalone.test.ts | 4 ++-- app/svelte/package.json | 1 + app/svelte/standalone.js | 2 +- app/vue/package.json | 1 + app/vue/standalone.js | 2 +- app/vue3/package.json | 1 + app/vue3/standalone.js | 2 +- app/web-components/package.json | 1 + app/web-components/standalone.js | 2 +- yarn.lock | 10 ++++++++++ 22 files changed, 32 insertions(+), 12 deletions(-) diff --git a/app/angular/package.json b/app/angular/package.json index 198c59c674a..dd76e71ddaf 100644 --- a/app/angular/package.json +++ b/app/angular/package.json @@ -45,6 +45,7 @@ "@storybook/core-client": "6.5.0-alpha.61", "@storybook/core-common": "6.5.0-alpha.61", "@storybook/core-events": "6.5.0-alpha.61", + "@storybook/core-server": "6.5.0-alpha.61", "@storybook/csf": "0.0.2--canary.7c6c115.0", "@storybook/docs-tools": "6.5.0-alpha.61", "@storybook/node-logger": "6.5.0-alpha.61", diff --git a/app/angular/standalone.js b/app/angular/standalone.js index 3d1e5d4065b..60936a7862e 100644 --- a/app/angular/standalone.js +++ b/app/angular/standalone.js @@ -1,4 +1,4 @@ -const build = require('@storybook/core/standalone'); +const build = require('@storybook/core-server/standalone'); const frameworkOptions = require('./dist/ts3.9/server/options').default; async function buildStandalone(options) { diff --git a/app/ember/package.json b/app/ember/package.json index 67b6a5de2b9..f09e91b06f0 100644 --- a/app/ember/package.json +++ b/app/ember/package.json @@ -38,6 +38,7 @@ "dependencies": { "@storybook/core-client": "6.5.0-alpha.61", "@storybook/core-common": "6.5.0-alpha.61", + "@storybook/core-server": "6.5.0-alpha.61", "@storybook/docs-tools": "6.5.0-alpha.61", "@storybook/store": "6.5.0-alpha.61", "core-js": "^3.8.2", diff --git a/app/ember/standalone.js b/app/ember/standalone.js index d11a82f7995..e053c741c4e 100644 --- a/app/ember/standalone.js +++ b/app/ember/standalone.js @@ -1,4 +1,4 @@ -const build = require('@storybook/core/standalone'); +const build = require('@storybook/core-server/standalone'); const frameworkOptions = require('./dist/cjs/server/options').default; async function buildStandalone(options) { diff --git a/app/html/package.json b/app/html/package.json index d1682d8a7f3..1a39b019fdc 100644 --- a/app/html/package.json +++ b/app/html/package.json @@ -42,6 +42,7 @@ "@storybook/addons": "6.5.0-alpha.61", "@storybook/core-client": "6.5.0-alpha.61", "@storybook/core-common": "6.5.0-alpha.61", + "@storybook/core-server": "6.5.0-alpha.61", "@storybook/csf": "0.0.2--canary.7c6c115.0", "@storybook/docs-tools": "6.5.0-alpha.61", "@storybook/preview-web": "6.5.0-alpha.61", diff --git a/app/html/standalone.js b/app/html/standalone.js index d11a82f7995..e053c741c4e 100644 --- a/app/html/standalone.js +++ b/app/html/standalone.js @@ -1,4 +1,4 @@ -const build = require('@storybook/core/standalone'); +const build = require('@storybook/core-server/standalone'); const frameworkOptions = require('./dist/cjs/server/options').default; async function buildStandalone(options) { diff --git a/app/preact/package.json b/app/preact/package.json index 1949b21c622..6663f149a84 100644 --- a/app/preact/package.json +++ b/app/preact/package.json @@ -43,6 +43,7 @@ "@storybook/addons": "6.5.0-alpha.61", "@storybook/core-client": "6.5.0-alpha.61", "@storybook/core-common": "6.5.0-alpha.61", + "@storybook/core-server": "6.5.0-alpha.61", "@storybook/csf": "0.0.2--canary.7c6c115.0", "@storybook/store": "6.5.0-alpha.61", "@types/node": "^14.14.20 || ^16.0.0", diff --git a/app/preact/standalone.js b/app/preact/standalone.js index d11a82f7995..e053c741c4e 100644 --- a/app/preact/standalone.js +++ b/app/preact/standalone.js @@ -1,4 +1,4 @@ -const build = require('@storybook/core/standalone'); +const build = require('@storybook/core-server/standalone'); const frameworkOptions = require('./dist/cjs/server/options').default; async function buildStandalone(options) { diff --git a/app/react/package.json b/app/react/package.json index 84db2795215..f1890c4a441 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -47,6 +47,7 @@ "@storybook/client-logger": "6.5.0-alpha.61", "@storybook/core-client": "6.5.0-alpha.61", "@storybook/core-common": "6.5.0-alpha.61", + "@storybook/core-server": "6.5.0-alpha.61", "@storybook/csf": "0.0.2--canary.7c6c115.0", "@storybook/docs-tools": "6.5.0-alpha.61", "@storybook/node-logger": "6.5.0-alpha.61", diff --git a/app/react/standalone.js b/app/react/standalone.js index d11a82f7995..e053c741c4e 100644 --- a/app/react/standalone.js +++ b/app/react/standalone.js @@ -1,4 +1,4 @@ -const build = require('@storybook/core/standalone'); +const build = require('@storybook/core-server/standalone'); const frameworkOptions = require('./dist/cjs/server/options').default; async function buildStandalone(options) { diff --git a/app/server/package.json b/app/server/package.json index 5e69b0bb690..e0e7c36871b 100644 --- a/app/server/package.json +++ b/app/server/package.json @@ -44,6 +44,7 @@ "@storybook/client-api": "6.5.0-alpha.61", "@storybook/core-client": "6.5.0-alpha.61", "@storybook/core-common": "6.5.0-alpha.61", + "@storybook/core-server": "6.5.0-alpha.61", "@storybook/csf": "0.0.2--canary.7c6c115.0", "@storybook/node-logger": "6.5.0-alpha.61", "@storybook/preview-web": "6.5.0-alpha.61", diff --git a/app/server/standalone.js b/app/server/standalone.js index d11a82f7995..e053c741c4e 100644 --- a/app/server/standalone.js +++ b/app/server/standalone.js @@ -1,4 +1,4 @@ -const build = require('@storybook/core/standalone'); +const build = require('@storybook/core-server/standalone'); const frameworkOptions = require('./dist/cjs/server/options').default; async function buildStandalone(options) { diff --git a/app/standalone.test.ts b/app/standalone.test.ts index f8e1aa73f17..cc4d74af969 100644 --- a/app/standalone.test.ts +++ b/app/standalone.test.ts @@ -1,6 +1,6 @@ -import build from '@storybook/core/standalone'; +import build from '@storybook/core-server/standalone'; -jest.mock('@storybook/core/standalone'); +jest.mock('@storybook/core-server/standalone'); describe.each([ ['angular'], diff --git a/app/svelte/package.json b/app/svelte/package.json index 7295361be31..7052cca2e27 100644 --- a/app/svelte/package.json +++ b/app/svelte/package.json @@ -44,6 +44,7 @@ "@storybook/client-logger": "6.5.0-alpha.61", "@storybook/core-client": "6.5.0-alpha.61", "@storybook/core-common": "6.5.0-alpha.61", + "@storybook/core-server": "6.5.0-alpha.61", "@storybook/csf": "0.0.2--canary.7c6c115.0", "@storybook/docs-tools": "6.5.0-alpha.61", "@storybook/node-logger": "6.5.0-alpha.61", diff --git a/app/svelte/standalone.js b/app/svelte/standalone.js index d11a82f7995..e053c741c4e 100644 --- a/app/svelte/standalone.js +++ b/app/svelte/standalone.js @@ -1,4 +1,4 @@ -const build = require('@storybook/core/standalone'); +const build = require('@storybook/core-server/standalone'); const frameworkOptions = require('./dist/cjs/server/options').default; async function buildStandalone(options) { diff --git a/app/vue/package.json b/app/vue/package.json index 6391aa5a0ac..1e12bedbc3f 100644 --- a/app/vue/package.json +++ b/app/vue/package.json @@ -43,6 +43,7 @@ "@storybook/client-logger": "6.5.0-alpha.61", "@storybook/core-client": "6.5.0-alpha.61", "@storybook/core-common": "6.5.0-alpha.61", + "@storybook/core-server": "6.5.0-alpha.61", "@storybook/csf": "0.0.2--canary.7c6c115.0", "@storybook/docs-tools": "6.5.0-alpha.61", "@storybook/store": "6.5.0-alpha.61", diff --git a/app/vue/standalone.js b/app/vue/standalone.js index d11a82f7995..e053c741c4e 100644 --- a/app/vue/standalone.js +++ b/app/vue/standalone.js @@ -1,4 +1,4 @@ -const build = require('@storybook/core/standalone'); +const build = require('@storybook/core-server/standalone'); const frameworkOptions = require('./dist/cjs/server/options').default; async function buildStandalone(options) { diff --git a/app/vue3/package.json b/app/vue3/package.json index d6be413661b..a864aa1ba11 100644 --- a/app/vue3/package.json +++ b/app/vue3/package.json @@ -43,6 +43,7 @@ "@storybook/addons": "6.5.0-alpha.61", "@storybook/core-client": "6.5.0-alpha.61", "@storybook/core-common": "6.5.0-alpha.61", + "@storybook/core-server": "6.5.0-alpha.61", "@storybook/csf": "0.0.2--canary.7c6c115.0", "@storybook/docs-tools": "6.5.0-alpha.61", "@storybook/store": "6.5.0-alpha.61", diff --git a/app/vue3/standalone.js b/app/vue3/standalone.js index d11a82f7995..e053c741c4e 100644 --- a/app/vue3/standalone.js +++ b/app/vue3/standalone.js @@ -1,4 +1,4 @@ -const build = require('@storybook/core/standalone'); +const build = require('@storybook/core-server/standalone'); const frameworkOptions = require('./dist/cjs/server/options').default; async function buildStandalone(options) { diff --git a/app/web-components/package.json b/app/web-components/package.json index b03cf3b46d8..0bfdf3f553a 100644 --- a/app/web-components/package.json +++ b/app/web-components/package.json @@ -49,6 +49,7 @@ "@storybook/client-logger": "6.5.0-alpha.61", "@storybook/core-client": "6.5.0-alpha.61", "@storybook/core-common": "6.5.0-alpha.61", + "@storybook/core-server": "6.5.0-alpha.61", "@storybook/csf": "0.0.2--canary.7c6c115.0", "@storybook/docs-tools": "6.5.0-alpha.61", "@storybook/preview-web": "6.5.0-alpha.61", diff --git a/app/web-components/standalone.js b/app/web-components/standalone.js index d11a82f7995..e053c741c4e 100644 --- a/app/web-components/standalone.js +++ b/app/web-components/standalone.js @@ -1,4 +1,4 @@ -const build = require('@storybook/core/standalone'); +const build = require('@storybook/core-server/standalone'); const frameworkOptions = require('./dist/cjs/server/options').default; async function buildStandalone(options) { diff --git a/yarn.lock b/yarn.lock index 3849b2a1b55..93e25bfc3d5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6987,6 +6987,7 @@ __metadata: "@storybook/core-client": 6.5.0-alpha.61 "@storybook/core-common": 6.5.0-alpha.61 "@storybook/core-events": 6.5.0-alpha.61 + "@storybook/core-server": 6.5.0-alpha.61 "@storybook/csf": 0.0.2--canary.7c6c115.0 "@storybook/docs-tools": 6.5.0-alpha.61 "@storybook/node-logger": 6.5.0-alpha.61 @@ -7743,6 +7744,7 @@ __metadata: dependencies: "@storybook/core-client": 6.5.0-alpha.61 "@storybook/core-common": 6.5.0-alpha.61 + "@storybook/core-server": 6.5.0-alpha.61 "@storybook/docs-tools": 6.5.0-alpha.61 "@storybook/store": 6.5.0-alpha.61 core-js: ^3.8.2 @@ -7845,6 +7847,7 @@ __metadata: "@storybook/addons": 6.5.0-alpha.61 "@storybook/core-client": 6.5.0-alpha.61 "@storybook/core-common": 6.5.0-alpha.61 + "@storybook/core-server": 6.5.0-alpha.61 "@storybook/csf": 0.0.2--canary.7c6c115.0 "@storybook/docs-tools": 6.5.0-alpha.61 "@storybook/preview-web": 6.5.0-alpha.61 @@ -8109,6 +8112,7 @@ __metadata: "@storybook/addons": 6.5.0-alpha.61 "@storybook/core-client": 6.5.0-alpha.61 "@storybook/core-common": 6.5.0-alpha.61 + "@storybook/core-server": 6.5.0-alpha.61 "@storybook/csf": 0.0.2--canary.7c6c115.0 "@storybook/store": 6.5.0-alpha.61 "@types/node": ^14.14.20 || ^16.0.0 @@ -8214,6 +8218,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.61 "@storybook/core-client": 6.5.0-alpha.61 "@storybook/core-common": 6.5.0-alpha.61 + "@storybook/core-server": 6.5.0-alpha.61 "@storybook/csf": 0.0.2--canary.7c6c115.0 "@storybook/docs-tools": 6.5.0-alpha.61 "@storybook/node-logger": 6.5.0-alpha.61 @@ -8578,6 +8583,7 @@ __metadata: "@storybook/client-api": 6.5.0-alpha.61 "@storybook/core-client": 6.5.0-alpha.61 "@storybook/core-common": 6.5.0-alpha.61 + "@storybook/core-server": 6.5.0-alpha.61 "@storybook/csf": 0.0.2--canary.7c6c115.0 "@storybook/node-logger": 6.5.0-alpha.61 "@storybook/preview-web": 6.5.0-alpha.61 @@ -8651,6 +8657,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.61 "@storybook/core-client": 6.5.0-alpha.61 "@storybook/core-common": 6.5.0-alpha.61 + "@storybook/core-server": 6.5.0-alpha.61 "@storybook/csf": 0.0.2--canary.7c6c115.0 "@storybook/docs-tools": 6.5.0-alpha.61 "@storybook/node-logger": 6.5.0-alpha.61 @@ -8798,6 +8805,7 @@ __metadata: "@storybook/addons": 6.5.0-alpha.61 "@storybook/core-client": 6.5.0-alpha.61 "@storybook/core-common": 6.5.0-alpha.61 + "@storybook/core-server": 6.5.0-alpha.61 "@storybook/csf": 0.0.2--canary.7c6c115.0 "@storybook/docs-tools": 6.5.0-alpha.61 "@storybook/store": 6.5.0-alpha.61 @@ -8833,6 +8841,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.61 "@storybook/core-client": 6.5.0-alpha.61 "@storybook/core-common": 6.5.0-alpha.61 + "@storybook/core-server": 6.5.0-alpha.61 "@storybook/csf": 0.0.2--canary.7c6c115.0 "@storybook/docs-tools": 6.5.0-alpha.61 "@storybook/store": 6.5.0-alpha.61 @@ -8874,6 +8883,7 @@ __metadata: "@storybook/client-logger": 6.5.0-alpha.61 "@storybook/core-client": 6.5.0-alpha.61 "@storybook/core-common": 6.5.0-alpha.61 + "@storybook/core-server": 6.5.0-alpha.61 "@storybook/csf": 0.0.2--canary.7c6c115.0 "@storybook/docs-tools": 6.5.0-alpha.61 "@storybook/preview-web": 6.5.0-alpha.61