Files
posthog/plugin-server/jest.config.js
2025-03-17 12:55:25 +01:00

18 lines
491 B
JavaScript

module.exports = {
transform: {
'^.+\\.(t|j)s$': ['@swc/jest'],
},
testEnvironment: 'node',
clearMocks: true,
coverageProvider: 'v8',
setupFilesAfterEnv: ['./jest.setup.js'],
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: {
'^~/(.*)$': '<rootDir>/$1',
},
}