jest.js 361 Bytes
Newer Older
1 2
module.exports = {
  verbose: true,
3 4 5 6
  globals: {
    'ts-jest': {
      tsConfigFile: 'tsconfig.json',
    },
7
  },
8 9
  transform: {
    '^.+\\.tsx?$': '<rootDir>/../../node_modules/ts-jest/preprocessor.js',
10
  },
11 12 13 14
  moduleDirectories: ['node_modules'],
  testRegex: '(\\.|/)(test)\\.ts$',
  testEnvironment: 'node',
  moduleFileExtensions: ['ts', 'js', 'json'],
15
};