Skip intentional error stories

This commit is contained in:
Michael Shilman 2023-12-04 12:24:48 +08:00
parent 048fa05a31
commit 0cfe04543b
2 changed files with 7 additions and 1 deletions

View File

@ -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');
},

View File

@ -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