const nextJest = require("next/jest"); const createJestConfig = nextJest({ dir: "./" }); /** @type {import('jest').Config} */ const customJestConfig = { testEnvironment: "node", moduleNameMapper: { "^@/(.*)$": "/$1" } }; module.exports = createJestConfig(customJestConfig);