mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
24 lines
638 B
JavaScript
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',
|
|
},
|
|
}
|