module.exports = {
  preset: 'ts-jest/presets/js-with-babel',
  transform: {
    '^.+\\.ts$': [
      'ts-jest',
      {
        tsconfig: 'tsconfig.json',
      },
    ],
  },
  moduleNameMapper: {
    '^@flexui/core$': '<rootDir>/../flexui/src',
    '^flexui/tests/base/env$': '<rootDir>/../flexui/tests/base/env',
  },
  roots: ['tests'],
  testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)', '!**/types/**'],
  testEnvironment: 'jsdom',
  collectCoverageFrom: ['src/**/*.ts'],
}