Skip to content

Commit

Permalink
Removed TextEncoder/Decoder mock (needed for jest but breaks vitest).
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Le Ponner <eric.leponner@icloud.com>
  • Loading branch information
ericleponner committed Jul 25, 2023
1 parent 3fd84e3 commit 9d3e9fb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/unit/globalSetup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { beforeEach, vi } from 'vitest'
import {CacheUtils} from "@/utils/cache/CacheUtils";
import {TextEncoder, TextDecoder} from 'util';

beforeEach(() => {
CacheUtils.clearAll()
Expand All @@ -20,4 +19,3 @@ Object.defineProperty(window, 'matchMedia', {
})),
});

Object.assign(global, { TextEncoder, TextDecoder });

0 comments on commit 9d3e9fb

Please sign in to comment.