๐A Jest runner for the TypeScript compiler
JavaScript
178
14 commits
updated Nov 18, 2020
jest-runner-tscA Jest runner for the TypeScript compiler
npm install --save-dev jest-runner-tsc
Jest 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:
jest-runner-tsc property in your package.jsonjest-runner-tsc.config.js JS file.jest-runner-tscrc JSON file{
"jest-runner-tsc": {
"tsconfigPath": "./tsconfig.types.json"
}
}
tsconfigPathDefault: ./tsconfig.json
A relative path to your tsconfig.json file.
jest -c jest.tsc.config.js
JavaScript
97.5%
TypeScript
2.5%
๐A Jest runner for the TypeScript compiler
JavaScript
178
14 commits
updated Nov 18, 2020
jest-runner-tscA Jest runner for the TypeScript compiler
npm install --save-dev jest-runner-tsc
Jest 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:
jest-runner-tsc property in your package.jsonjest-runner-tsc.config.js JS file.jest-runner-tscrc JSON file{
"jest-runner-tsc": {
"tsconfigPath": "./tsconfig.types.json"
}
}
tsconfigPathDefault: ./tsconfig.json
A relative path to your tsconfig.json file.
jest -c jest.tsc.config.js
JavaScript
97.5%
TypeScript
2.5%