Remove hack for happy-dom

The update to happy-dom 8.0 did remove the need to do the assignment
hack in `setupVitest`

source: https://github.com/vitest-dev/vitest/issues/2305#issuecomment-1396387954

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-06-30 07:24:30 +02:00
parent 40f2b3e516
commit dbad9ddeef
2 changed files with 0 additions and 10 deletions
-9
View File
@@ -1,9 +0,0 @@
// Found in https://github.com/belgattitude/nextjs-monorepo-example/pull/2913
// Hack for vitest 0.25.2 / happy-dom. Keep till those issues are fixed
// - https://github.com/vitest-dev/vitest/issues/2305#issuecomment-1311420462
// - https://github.com/capricorn86/happy-dom/issues/569
import { URL } from "node:url";
//@ts-expect-error The two types don't match, but for this hack we have to
//overwrite the given URL by happy-dom with the URL class passed by Node
globalThis.URL = URL;
-1
View File
@@ -8,7 +8,6 @@ import { svelte } from "@sveltejs/vite-plugin-svelte";
export default defineConfig({
test: {
setupFiles: "./tests/support/setupVitest",
environment: "happy-dom",
include: ["tests/unit/**/*.test.ts"],
reporters: "verbose",