Skip to content
Snippets Groups Projects
Select Git revision
  • 1cb41179dd25211f1e2027748d18c3a998144ec5
  • main default
  • f-publish protected
  • f-remove-googleapi
4 results

jest.config.js

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    jest.config.js 388 B
    const config = {
      roots: ["<rootDir>/tests"],
      transform: {
        "^.+\\.tsx?$": "ts-jest",
      },
      preset: "ts-jest",
      testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
      moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node", "d.ts"],
      moduleNameMapper: {
        "^.+\\.(css|less|scss)$": "identity-obj-proxy",
      },
      testEnvironment: "jsdom",
    };
    module.exports = config;