text: const { pathsToModuleNameMapper } = require("ts-jest");
  const { compilerOptions } = require("./tsconfig.json");
  
  module.exports = {
    collectCoverage: true,
    transform: {
      "^.+\\.ts$": "ts-jest",
    },
    moduleFileExtensions: ["js", "ts"],
    testEnvironment: "jsdom",
    testMatch: ["**/*.test.ts"],
    globals: {
      "ts-jest": {
        tsconfig: "./tsconfig.json",
        diagnostics: false,
      },
    },
    moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths),
  };
  