From 6d54d3c5b77397634fd131d6a85a6040994ed178 Mon Sep 17 00:00:00 2001 From: 0xLucca <0xlucca.dev@gmail.com> Date: Mon, 15 Jan 2024 12:41:27 -0300 Subject: [PATCH] Remove unused files --- jest-environment-jsdom.js | 23 ----------------------- jest.config.js | 16 ---------------- 2 files changed, 39 deletions(-) delete mode 100644 jest-environment-jsdom.js delete mode 100644 jest.config.js diff --git a/jest-environment-jsdom.js b/jest-environment-jsdom.js deleted file mode 100644 index 9b1fac1c..00000000 --- a/jest-environment-jsdom.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -import { TextEncoder, TextDecoder } from "util"; -import { - default as $JSDOMEnvironment, - TestEnvironment, -} from "jest-environment-jsdom"; - -Object.defineProperty(exports, "__esModule", { - value: true, -}); - -class JSDOMEnvironment extends $JSDOMEnvironment { - constructor(...args) { - const { global } = super(...args); - if (!global.TextEncoder) global.TextEncoder = TextEncoder; - if (!global.TextDecoder) global.TextDecoder = TextDecoder; - } -} - -exports.default = JSDOMEnvironment; -exports.TestEnvironment = - TestEnvironment === $JSDOMEnvironment ? JSDOMEnvironment : TestEnvironment; diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index 9a227d45..00000000 --- a/jest.config.js +++ /dev/null @@ -1,16 +0,0 @@ -const nextJest = require("next/jest"); - -const createJestConfig = nextJest({ - dir: "./", -}); - -const customJestConfig = { - setupFilesAfterEnv: ["/tests/setupTests.ts"], - testEnvironment: "./jest-environment-jsdom", - testMatch: ["/tests/**/*.(test).(ts|tsx)"], - moduleNameMapper: { - "^@/(.*)$": "/src/$1", - }, -}; - -module.exports = createJestConfig(customJestConfig);