Fix hanging chromatic sandbox

This commit is contained in:
Valentin Palkovic 2025-03-12 21:19:41 +01:00
parent c44e190d28
commit c6fb85260b
2 changed files with 27 additions and 5 deletions

View File

@ -61,7 +61,15 @@ export const getEntries = (cwd: string) => {
true,
['util', 'react'],
[],
['chai', '@vitest/expect', '@vitest/spy', '@vitest/utils'],
[
'@testing-library/dom',
'@testing-library/jest-dom',
'@testing-library/user-event',
'chai',
'@vitest/expect',
'@vitest/spy',
'@vitest/utils',
],
true
),
define(
@ -70,7 +78,15 @@ export const getEntries = (cwd: string) => {
true,
['util', 'react'],
[],
['chai', '@vitest/expect', '@vitest/spy', '@vitest/utils'],
[
'@testing-library/dom',
'@testing-library/jest-dom',
'@testing-library/user-event',
'chai',
'@vitest/expect',
'@vitest/spy',
'@vitest/utils',
],
true
),
define(
@ -79,7 +95,15 @@ export const getEntries = (cwd: string) => {
true,
['util', 'react'],
[],
['chai', '@vitest/expect', '@vitest/spy', '@vitest/utils'],
[
'@testing-library/dom',
'@testing-library/jest-dom',
'@testing-library/user-event',
'chai',
'@vitest/expect',
'@vitest/spy',
'@vitest/utils',
],
true
),
];

View File

@ -3,8 +3,6 @@ import { definePreview } from 'storybook/internal/preview-api';
import * as addArgs from './addArgs';
import * as loaders from './loaders';
export * from './loaders';
export default () =>
definePreview({
...addArgs,