Skip to content

Commit

Permalink
test: add global setupFiles file for Vitest 馃И
Browse files Browse the repository at this point in the history
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
  • Loading branch information
vinayakkulkarni committed Mar 14, 2023
1 parent 361fae1 commit 8df4bc5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/setup/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { URL } from 'node:url';
import { Blob } from 'buffer';

// @ts-ignore
globalThis.URL = URL;
// https://github.com/vitest-dev/vitest/issues/1377#issuecomment-1141411249
// @ts-ignore
globalThis.Blob = Blob;

0 comments on commit 8df4bc5

Please sign in to comment.