diff --git a/packages/components/src/utils/testing/snapshot-testing.tsx b/packages/components/src/utils/testing/snapshot-testing.tsx index 356e597c4f..99aaf076ad 100644 --- a/packages/components/src/utils/testing/snapshot-testing.tsx +++ b/packages/components/src/utils/testing/snapshot-testing.tsx @@ -17,6 +17,9 @@ export const executeSnapshotTests = >(Comp describe(ComponentName, () => { const testTable: [string, Props][] = propVariants.map((props) => [propsToLabel(props), props]); + jest.useFakeTimers(); + jest.spyOn(global, 'setTimeout'); + it.each(testTable)('should render with %s', async (_, props) => { const page = await newSpecPage({ components,