module.exports = {
  preset: 'ts-jest',
  testEnvironment: 'jsdom',
  setupFilesAfterEnv: ['<rootDir>/src/collaboration/__tests__/setup.ts'],
  moduleNameMapping: {
    '^@/(.*)$': '<rootDir>/src/$1'
  },
  testMatch: [
    '<rootDir>/src/collaboration/__tests__/**/*.test.{ts,tsx}'
  ],
  collectCoverageFrom: [
    'src/collaboration/**/*.{ts,tsx}',
    '!src/collaboration/**/*.d.ts',
    '!src/collaboration/__tests__/**',
    '!src/collaboration/examples/**'
  ],
  coverageDirectory: 'coverage/collaboration',
  coverageReporters: ['text', 'lcov', 'html'],
  transform: {
    '^.+\\.tsx?$': ['ts-jest', {
      tsconfig: {
        jsx: 'react-jsx'
      }
    }]
  }
};