Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

584 B
Raw Blame
module.exports = {
  testEnvironment: "node",
  transform: {
    "^.+\\.ts$": [
      "ts-jest",
      {
        tsconfig: {
          module: "commonjs",
          esModuleInterop: true,
          strict: false,
          baseUrl: ".",
          paths: { "@mercurjs/types": ["../../types/src/index.ts"] },
        },
      },
    ],
  },
  testMatch: ["**/__tests__/**/*.spec.ts"],
  moduleNameMapper: {
    "^@mercurjs/types$": "<rootDir>/../../types/src/index.ts",
    "^@mercurjs/core/workflows/payout/utils/(.*)$": "<rootDir>/../../core/src/workflows/payout/utils/$1.ts",
  },
}