πŸƒA Jest runner for the TypeScript compiler
Clone or download
SimenB and azz fix: correct reporting interface (#9)
Hah, I trusted the "tests" too much. The callback is not used in create-jest-runner (it's promise-based). Now I've actually tested it in a project.

Recommended to look at the diff with whitespace turned off.

@rogeliog we should have a test helpers package for runners, or at the very least some sort of cookbook
Latest commit a5d94e5 Sep 17, 2018

README.md

jest-runner-tsc

Travis Prettier npm semantic-release License

A Jest runner for the TypeScript compiler

install

npm install --save-dev jest-runner-tsc

configure

Jest configuration:

jest.tsc.config.js:

module.exports = {
  runner: 'jest-runner-tsc',
  displayName: 'tsc',
  moduleFileExtensions: ['ts', 'tsx'],
  testMatch: ['<rootDir>/**/*.ts'],
};

run

jest -c jest.tsc.config.js