diff --git a/jest.config.ts b/jest.config.ts index 0fbd094883..87a2fcc9fb 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -60,28 +60,29 @@ const config: Config = { transformIgnorePatterns: ["/node_modules/", "^.+\\.module\\.(css|sass|scss)$"], testEnvironment: "jsdom", }, - { - displayName: "@calcom/api", - roots: ["/apps/api"], - testMatch: ["**/test/lib/**/*.(spec|test).(ts|tsx|js)"], - setupFilesAfterEnv: ["/tests/config/singleton.ts"], - transform: { - "^.+\\.ts?$": "ts-jest", - }, - globals: { - "ts-jest": { - tsconfig: "/apps/api/tsconfig.json", - }, - }, - transformIgnorePatterns: ["/node_modules/", "^.+\\.module\\.(css|sass|scss)$"], - testEnvironment: "node", - clearMocks: true, - moduleNameMapper: { - "^@lib/(.*)$": "/apps/api/lib/$1", - "^@api/(.*)$": "/apps/api/pages/api/$1", - }, - // setupFilesAfterEnv: ["/apps/api/jest.setup.ts"], // Uncomment when API becomes public - }, + // FIXME: Prevent this breaking Jest when API module is missing + // { + // displayName: "@calcom/api", + // roots: ["/apps/api"], + // testMatch: ["**/test/lib/**/*.(spec|test).(ts|tsx|js)"], + // setupFilesAfterEnv: ["/tests/config/singleton.ts"], + // transform: { + // "^.+\\.ts?$": "ts-jest", + // }, + // globals: { + // "ts-jest": { + // tsconfig: "/apps/api/tsconfig.json", + // }, + // }, + // transformIgnorePatterns: ["/node_modules/", "^.+\\.module\\.(css|sass|scss)$"], + // testEnvironment: "node", + // clearMocks: true, + // moduleNameMapper: { + // "^@lib/(.*)$": "/apps/api/lib/$1", + // "^@api/(.*)$": "/apps/api/pages/api/$1", + // }, + // // setupFilesAfterEnv: ["/apps/api/jest.setup.ts"], // Uncomment when API becomes public + // }, ], watchPlugins: [ "jest-watch-typeahead/filename",