diff --git a/src/__snapshots__/settingsMenuItems.component.test.tsx.snap b/src/__snapshots__/settingsMenuItems.component.test.tsx.snap index 9a4bcebed..88ad3cb95 100644 --- a/src/__snapshots__/settingsMenuItems.component.test.tsx.snap +++ b/src/__snapshots__/settingsMenuItems.component.test.tsx.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Settings Menu Items component renders dropdown only when menu is visible 1`] = ` +exports[`Settings Menu Items component > renders dropdown only when menu is visible 1`] = `
renders correctly 1`] = `
renders an image and a canvas overlay 1`] = `
{ +vi.mock('../windows/windowPortal.component', () => { // eslint-disable-next-line @typescript-eslint/no-var-requires const ReactMock = require('react'); - return ReactMock.forwardRef(({ children }, ref) => ( - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - {children} - )); + return { + default: ReactMock.forwardRef(({ children }, ref) => ( + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + {children} + )), + }; }); -jest.mock('./imageView.component', () => () => ( - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - -)); +vi.mock('./imageView.component', () => ({ + default: () => ( + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + + ), +})); describe('Image Window component', () => { let testImageConfig: TraceOrImageWindow; @@ -55,7 +59,7 @@ describe('Image Window component', () => { }); it('renders correctly while image is loading', () => { - const loadingHandler = (req, res, ctx) => { + const loadingHandler = () => { // taken from https://github.com/mswjs/msw/issues/778 - a way of mocking pending promises without breaking jest return new Promise(() => undefined); }; diff --git a/src/preloader/__snapshots__/preloader.component.test.tsx.snap b/src/preloader/__snapshots__/preloader.component.test.tsx.snap index 98f2200ef..001ba7c32 100644 --- a/src/preloader/__snapshots__/preloader.component.test.tsx.snap +++ b/src/preloader/__snapshots__/preloader.component.test.tsx.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Preloader component does not render when the site is not loading 1`] = ` +exports[`Preloader component > does not render when the site is not loading 1`] = `
@@ -10,7 +10,7 @@ exports[`Preloader component does not render when the site is not loading 1`] = `; -exports[`Preloader component renders when the site is loading 1`] = ` +exports[`Preloader component > renders when the site is loading 1`] = `
renders correctly with all columns displayed 1`] = `
`; -exports[`Table renders correctly, with only timestamp column 1`] = ` +exports[`Table > renders correctly, with only timestamp column 1`] = `
renders correctly 1`] = ` diff --git a/src/table/headerRenderers/__snapshots__/dataHeader.component.test.tsx.snap b/src/table/headerRenderers/__snapshots__/dataHeader.component.test.tsx.snap index f91d22b5c..a4e3b88fe 100644 --- a/src/table/headerRenderers/__snapshots__/dataHeader.component.test.tsx.snap +++ b/src/table/headerRenderers/__snapshots__/dataHeader.component.test.tsx.snap @@ -1,6 +1,6 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Data Header opens menu when menu icon is clicked 1`] = ` +exports[`Data Header > opens menu when menu icon is clicked 1`] = `
    `; -exports[`Data Header renders correctly 1`] = ` +exports[`Data Header > renders correctly 1`] = `