/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ module.exports = { preset: "ts-jest", testEnvironment: "jsdom", // setupFiles: ["/test/setup-tests.ts"], moduleNameMapper: { "@lib/(.*)": "/lib/$1", "@components/(.*)": "/routes/$1", "@pages/(.*)": "/routes/$1", "@public/(.*)": "/public/$1", "@styles/(.*)": "/styles/$1" }, testPathIgnorePatterns: [ "/node_modules/", "/dist/", "/.next/", "/public/" ], testMatch: [ "**/__tests__/**/*.+(ts|tsx|js)", "**/?(*.)+(spec|test).+(ts|tsx|js)" ] }