Skip to content

Commit

Permalink
Fix unit tests timing out
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Aug 30, 2023
1 parent b37a267 commit 72b18d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Blob } from 'node:buffer';
import { expect, afterEach } from 'vitest';
import { cleanup } from '@testing-library/react';
import matchers from '@testing-library/jest-dom/matchers';
Expand All @@ -8,3 +9,5 @@ expect.extend(matchers);
afterEach(() => {
cleanup();
});

globalThis.Blob = Blob as unknown as typeof globalThis.Blob;

0 comments on commit 72b18d8

Please sign in to comment.