mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Skip intentional error stories
This commit is contained in:
parent
048fa05a31
commit
0cfe04543b
@ -1,4 +1,3 @@
|
||||
import React, { Suspense } from 'react';
|
||||
import { RSC } from './RSC';
|
||||
|
||||
export default {
|
||||
@ -8,12 +7,18 @@ export default {
|
||||
export const Default = {};
|
||||
|
||||
export const DisableRSC = {
|
||||
tags: ['test-skip'],
|
||||
parameters: {
|
||||
chromatic: { disable: true },
|
||||
nextjs: { rsc: false },
|
||||
},
|
||||
};
|
||||
|
||||
export const Error = {
|
||||
tags: ['test-skip'],
|
||||
parameters: {
|
||||
chromatic: { disable: true },
|
||||
},
|
||||
render: () => {
|
||||
throw new Error('RSC Error');
|
||||
},
|
||||
|
@ -17,6 +17,7 @@ export const testRunnerBuild: Task & { port: number } = {
|
||||
'--junit',
|
||||
'--maxWorkers=2',
|
||||
'--failOnConsole',
|
||||
'--skipTags="test-skip"',
|
||||
];
|
||||
|
||||
// index-json mode is only supported in ssv7
|
||||
|
Loading…
x
Reference in New Issue
Block a user