Files
posthog/plugin-server/jest.config.js
2025-08-26 16:52:17 +01:00

24 lines
638 B
JavaScript

module.exports = {
transform: {
'^.+\\.(t|j)s$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
},
],
},
testEnvironment: 'node',
clearMocks: true,
coverageProvider: 'v8',
setupFilesAfterEnv: ['./jest.setup.ts'],
testMatch: ['<rootDir>/tests/**/*.test.ts', '<rootDir>/src/**/*.test.ts'],
testTimeout: 60000,
modulePathIgnorePatterns: ['<rootDir>/.tmp/'],
// NOTE: This should be kept in sync with tsconfig.json
moduleNameMapper: {
'^~/tests/(.*)$': '<rootDir>/tests/$1',
'^~/(.*)$': '<rootDir>/src/$1',
},
}