import '@testing-library/jest-dom/extend-expect' ; import 'jest-canvas-mock' ; import { setGlobalConfig } from '@storybook/testing-react' ; import * as globalStorybookConfig from '../.storybook/preview' ; setGlobalConfig ( globalStorybookConfig ) ; const { getComputedStyle } = window ; window . getComputedStyle = ( elt ) => getComputedStyle ( elt ) ; window . scrollTo = ( ) => { } ;