A Jest runner for the TypeScript compiler
npm install --save-dev jest-runner-tscJest configuration:
jest.tsc.config.js:
module.exports = {
  runner: 'jest-runner-tsc',
  displayName: 'tsc',
  moduleFileExtensions: ['js','ts', 'tsx'],
  testMatch: ['<rootDir>/**/*.ts'],
};This project uses cosmiconfig, so you can provide config via:
- a 
jest-runner-tscproperty in your package.json - a 
jest-runner-tsc.config.jsJS file - a 
.jest-runner-tscrcJSON file 
{
  "jest-runner-tsc": {
    "tsconfigPath": "./tsconfig.types.json"
  }
}Default: ./tsconfig.json
A relative path to your tsconfig.json file.
jest -c jest.tsc.config.js