From 5943ae777a395f0844b476196c2e28e3370ba2f2 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Tue, 11 Oct 2022 10:50:01 +0800 Subject: [PATCH] Skip core-presets test until we get a new example --- code/lib/core-server/src/core-presets.test.ts | 63 ++++++++++--------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/code/lib/core-server/src/core-presets.test.ts b/code/lib/core-server/src/core-presets.test.ts index 681a511165eb..2768971ec73b 100644 --- a/code/lib/core-server/src/core-presets.test.ts +++ b/code/lib/core-server/src/core-presets.test.ts @@ -177,35 +177,40 @@ const prepareSnap = (get: any, name): Pick `__snapshots__/${name}`; // FIXME: we no longer have test cases -describe.each([[]])('%s', (example) => { - describe.each([ - ['manager', managerExecutor], - ['preview', previewExecutor], - ])('%s', (component, executor) => { - beforeEach(async () => { - jest.clearAllMocks(); - await cache.clear(); - }); - - it.each([ - ['prod', buildStaticStandalone], - ['dev', buildDevStandalone], - ])('%s', async (mode, builder) => { - const options = { - ...baseOptions, - configDir: path.resolve(`${__dirname}/../../../examples/${example}/.storybook`), - // Only add an outputDir in production mode. - outputDir: - mode === 'prod' ? await mkdtemp(path.join(os.tmpdir(), 'storybook-static-')) : undefined, - ignorePreview: component === 'manager', - managerCache: component === 'preview', - packageJson, - }; - await builder(options); - const config = prepareSnap(executor.get, component); - expect(config).toMatchSpecificSnapshot( - snap(`${example}_${component}-${mode}-${SNAPSHOT_OS}`) - ); +// eslint-disable-next-line jest/no-disabled-tests +describe.skip('FIXME', () => { + describe.each([[]])('%s', (example) => { + describe.each([ + ['manager', managerExecutor], + ['preview', previewExecutor], + ])('%s', (component, executor) => { + beforeEach(async () => { + jest.clearAllMocks(); + await cache.clear(); + }); + + it.each([ + ['prod', buildStaticStandalone], + ['dev', buildDevStandalone], + ])('%s', async (mode, builder) => { + const options = { + ...baseOptions, + configDir: path.resolve(`${__dirname}/../../../examples/${example}/.storybook`), + // Only add an outputDir in production mode. + outputDir: + mode === 'prod' + ? await mkdtemp(path.join(os.tmpdir(), 'storybook-static-')) + : undefined, + ignorePreview: component === 'manager', + managerCache: component === 'preview', + packageJson, + }; + await builder(options); + const config = prepareSnap(executor.get, component); + expect(config).toMatchSpecificSnapshot( + snap(`${example}_${component}-${mode}-${SNAPSHOT_OS}`) + ); + }); }); }); });