TypeScript preprocessor with sourcemap support for Jest
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github chore: updates versions and keep comments Aug 31, 2018
docs Fix wrong value in package.json example (#849) Nov 5, 2018
e2e build(packages): updates e2e test cases dependencies Nov 10, 2018
presets fix(typings): wrong import in preset typings + test Oct 6, 2018
scripts ci(e2e): allows a diff dir for each config Sep 22, 2018
src More safely resolve 'jest-config'. (#853) Nov 16, 2018
utils fix(helpers): deprecate import from ts-jest, now ts-jest/utils Oct 6, 2018
.editorconfig style(lint): fixes editor config file Sep 22, 2018
.eslintignore chore(style): stronger lint rules + lint commit msg Sep 3, 2018
.eslintrc.js fix: node 6 unhappy again... Aug 20, 2018
.gitattributes build: hide package-lock file for better diff Oct 11, 2018
.gitignore ci(cache): improves cache handling & use a non-deleted dir Sep 22, 2018
.markdownlint.yaml docs: renames remaining `TSJest` Sep 12, 2018
.npmignore ci(cache): improves cache handling & use a non-deleted dir Sep 22, 2018
.npmrc style(release): normalize version message Sep 6, 2018
.prettierignore feat: handles stringifyContentPathRegex Aug 13, 2018
.prettierrc chore(style): stronger lint rules + lint commit msg Sep 3, 2018
.travis.yml ci(travis): fixes env vars Sep 22, 2018
CHANGELOG.md chore(release): 23.10.5 Nov 22, 2018
CONTRIBUTING.md docs(slack): updates the Slack link to the shortened version Sep 19, 2018
LICENSE.md docs(community): updates readme and community related docs Sep 4, 2018
README.md Update README.md (#887) Nov 25, 2018
appveyor.yml ci(e2e): allows a diff dir for each config Sep 22, 2018
cli.js Beta docfix (#711) Sep 11, 2018
commitlint.config.js chore(style): stronger lint rules + lint commit msg Sep 3, 2018
icon.png style(logo): svg version & png refined Sep 17, 2018
jest-preset.js feat(preset): adds 2 presets along the default one Sep 24, 2018
jest.config.js ci(cache): improves cache handling & use a non-deleted dir Sep 22, 2018
package-lock.json build(deps-dev): bump @types/node from 10.12.12 to 10.12.15 (#911) Dec 14, 2018
package.json chore(release): 23.10.5 Nov 22, 2018
preprocessor.js feat(logging): improves log messages + tests Aug 31, 2018
tsconfig.build.json feat(typings): emit declaration files, filtering out internals Sep 21, 2018
tsconfig.json fix(config): jsx should also be considered as js files Sep 18, 2018
tslint.json style(fix): exclude package.json from tslint rules Sep 19, 2018

README.md

ts-jest npm version NPM downloads Known Vulnerabilities Coverage Status Dependabot Status Build Status for linux Build Status for Windows

ts-jest is a TypeScript preprocessor with source map support for Jest that lets you use Jest to test projects written in TypeScript.

It supports all features of TypeScript including type-checking. Read more about Babel7 + preset-typescript vs TypeScript (and ts-jest).


We are not doing semantic versioning and 23.10 is a re-write, run npm i -D ts-jest@"<23.10.0" to go back to the previous version

View the online documentation (usage & technical)

Ask for some help in the ts-jest community of Slack

We're looking for collaborators! Want to help improve ts-jest?


Getting Started

These instructions will get you setup to use ts-jest in your project. For more detailed documentation, please check online documentation.

using npm using yarn
Prerequisites npm i -D jest typescript yarn add --dev jest typescript
Installing npm i -D ts-jest @types/jest yarn add --dev ts-jest @types/jest
Creating config npx ts-jest config:init yarn ts-jest config:init
Running tests npm t or npx jest yarn test or yarn jest

Built With

  • TypeScript - JavaScript that scales
  • Jest - Delightful JavaScript Testing
  • ts-jest - Jest processor for TypeScript (yes, ts-jest uses itself for its tests)

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We DO NOT use SemVer for versioning. Tho you can think about SemVer when reading our version, except our major number follow the one of Jest. For the versions available, see the tags on this repository.

Authors/maintainers

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details