Replace test-runner with vitest for storybook (#17187)

This commit is contained in:
Abdullah.
2026-01-18 08:25:45 +05:00
committed by GitHub
parent c737028dd6
commit 92eff62523
56 changed files with 4999 additions and 715 deletions
-1
View File
@@ -24,4 +24,3 @@ export { RecoilRootDecorator } from './decorators/RecoilRootDecorator';
export { RouterDecorator } from './decorators/RouterDecorator';
export { AVATAR_URL_MOCK } from './mocks/avatarUrlMock';
export type { CatalogStory } from './types/CatalogStory';
export { getCanvasElementForDropdownTesting } from './utils/getCanvasElementForDropdownTesting';
@@ -1,14 +0,0 @@
import { isDefined } from 'twenty-shared/utils';
export const getCanvasElementForDropdownTesting = () => {
const canvasElement = document.getElementsByClassName(
'sb-show-main',
)[0] as HTMLElement | null;
if (!isDefined(canvasElement)) {
throw new Error(
`Canvas element not found for dropdown testing in storybook, verify that storybook still uses the class name "sb-show-main" for its body that displays stories.`,
);
}
return canvasElement;
};