I am using jest for unit testing in typescript. When setting "type": "module" in the tsconfig.json, i can run my app, but my jest stops working and say "ReferenceError: require is not defined".
const { pathsToModuleNameMapper } = require("ts-jest/utils");
const { compilerOptions } = require("./tsconfig");
const paths = pathsToModuleNameMapper(compilerOptions.paths, { prefix: "<rootDir>/src" });
delete paths["^(.*)$"];
Eslint is giving me "Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser".