https://github.com/azz/jest-runner-tsc
  
  
    🃏A Jest runner for the TypeScript compiler 
    https://github.com/azz/jest-runner-tsc
  
jest tsc typescript
        Last synced: 7 months ago 
        JSON representation
    
🃏A Jest runner for the TypeScript compiler
- Host: GitHub
 - URL: https://github.com/azz/jest-runner-tsc
 - Owner: azz
 - License: mit
 - Created: 2017-12-19T13:07:32.000Z (almost 8 years ago)
 - Default Branch: master
 - Last Pushed: 2020-11-18T22:04:47.000Z (almost 5 years ago)
 - Last Synced: 2025-03-29T14:07:47.158Z (7 months ago)
 - Topics: jest, tsc, typescript
 - Language: JavaScript
 - Homepage:
 - Size: 326 KB
 - Stars: 178
 - Watchers: 4
 - Forks: 12
 - Open Issues: 8
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 
 
Awesome Lists containing this project
- awesome-list - jest-runner-tsc
 - awesome-jest - jest-runner-tsc
 
README
          # `jest-runner-tsc`
[](https://travis-ci.org/azz/jest-runner-tsc)
[](https://github.com/prettier/prettier)
[](https://npmjs.org/jest-runner-tsc)
[](https://github.com/semantic-release/semantic-release)
[](LICENSE)
> A Jest runner for the TypeScript compiler
## install
```bash
npm install --save-dev jest-runner-tsc
```
## usage
Jest configuration:
jest.tsc.config.js:
```js
module.exports = {
  runner: 'jest-runner-tsc',
  displayName: 'tsc',
  moduleFileExtensions: ['js','ts', 'tsx'],
  testMatch: ['/**/*.ts'],
};
```
## options
This project uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig), so you can provide config via:
- a `jest-runner-tsc` property in your package.json
- a `jest-runner-tsc.config.js` JS file
- a `.jest-runner-tscrc` JSON file
### Example in package.json
```json
{
  "jest-runner-tsc": {
    "tsconfigPath": "./tsconfig.types.json"
  }
}
```
### `tsconfigPath`
Default: `./tsconfig.json`
A relative path to your `tsconfig.json` file.
## run
```
jest -c jest.tsc.config.js
```