ts-jest
TypeScript icon, indicating that this package has built-in type declarations

29.3.2 • Public • Published

ts-jest

A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.

NPM version NPM downloads Known vulnerabilities Coverage status GitHub actions GitHub license Gurubase

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 Jest Discord community or ts-jest GitHub Discussion

Before reporting any issues, be sure to check the troubleshooting page

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 test or npx jest yarn test or yarn jest

Built With

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. Though you can think about SemVer when reading our version, except our major number follows 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.

Supporters

License

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
29.3.22,075,726latest
29.0.0-next.17,894next

Version History

VersionDownloads (Last 7 Days)Published
29.3.22,075,726
29.3.1706,968
29.3.0288,142
29.2.6766,481
29.2.52,726,003
29.2.4235,434
29.2.3153,319
29.2.289,374
29.2.19,195
29.2.029,267
29.1.5314,445
29.1.4178,141
29.1.356,483
29.1.21,178,593
29.1.11,417,775
29.1.0604,514
29.0.5332,348
29.0.41,859
29.0.3256,121
29.0.26,884
29.0.119,770
29.0.06,907
29.0.0-next.17,894
29.0.0-next.0741
28.0.8484,596
28.0.740,426
28.0.63,765
28.0.582,446
28.0.47,516
28.0.316,411
27.1.5797,902
28.0.211,927
28.0.117,857
28.0.02,473
28.0.0-next.3152
28.0.0-next.2103
28.0.0-next.123
28.0.0-next.012
27.1.480,883
27.1.398,486
27.1.236,226
27.1.126,011
27.1.02,708
27.0.758,970
27.0.65,013
27.0.585,842
27.0.420,945
27.0.363,495
27.0.26,447
27.0.13,139
27.0.02,899
26.5.6704,898
27.0.0-next.1259
27.0.0-next.1114
26.5.533,022
27.0.0-next.101,041
27.0.0-next.95
26.5.451,356
27.0.0-next.84
26.5.331,862
27.0.0-next.74
26.5.212,802
27.0.0-next.611
26.5.124,180
27.0.0-next.512
26.5.012,712
27.0.0-next.44
27.0.0-next.35
27.0.0-next.29
27.0.0-alpha.115
27.0.0-alpha.04
26.4.4134,849
26.4.4-alpha.04
26.4.317,984
26.4.3-beta.05
26.4.21,709
26.4.128,761
26.4.1-alpha.05
26.4.09,010
26.3.031,502
26.2.011,540
26.1.414,430
26.1.4-alpha.05
26.1.36,161
26.1.25,481
26.1.121,095
26.1.016,631
26.0.014,386
25.5.1215,921
25.5.1-alpha.09
25.5.02,646
25.5.0-beta.04
25.5.0-alpha.06
25.10.0-alpha.213
25.4.021,332
25.3.111,274
25.3.08,456
25.2.131,506
25.2.07,390
25.1.09,837
25.0.01,089
24.3.0271,035
24.2.033,369
24.1.065,198
24.0.267,442
24.0.1831
24.0.012,775
23.10.554,247
23.10.42,514
23.10.3176
23.10.21,445
23.10.1399
23.10.01,394
23.10.0-beta.64
23.10.0-beta.54
23.10.0-beta.44
23.10.0-beta.35
23.10.0-beta.25
23.10.0-beta.15
23.1.419,310
23.1.32,857
23.1.251
23.1.121
23.1.014
23.0.12,810
23.0.0846
22.4.648,927
22.4.51,647
22.4.43,094
22.4.3569
22.4.210,379
22.4.11,157
22.4.0569
22.0.4761
22.0.3126
22.0.2231
22.0.14,857
22.0.0135
21.2.413,560
21.2.3119
21.2.218
21.2.128
21.2.06
21.1.4354
21.1.3412
21.1.2964
21.1.110
21.1.073
21.0.1481
21.0.032
20.0.146,101
20.0.1373
20.0.128
20.0.117
20.0.102,558
20.0.9243
20.0.88
20.0.7684
20.0.6729
20.0.5189
20.0.488
20.0.327
20.0.28
20.0.17
20.0.012
19.0.147,561
19.0.1311
19.0.124
19.0.114
19.0.1045
19.0.98
19.0.89
19.0.76
19.0.6811
19.0.513
19.0.45
19.0.35
19.0.24,490
19.0.16
19.0.014
18.0.3911
18.0.27
18.0.18
18.0.07
17.0.315
17.0.26
17.0.16
17.0.04
0.1.13117
0.1.1110
0.1.105
0.1.95
0.1.88
0.1.75
0.1.64
0.1.54
0.1.46
0.1.36
0.1.28
0.1.14
0.1.04
0.0.152

Package Sidebar

Install

npm i ts-jest

Weekly Downloads

15,564,329

Version

29.3.2

License

MIT

Unpacked Size

339 kB

Total Files

97

Last publish

Collaborators

  • kul
  • anhpnnd
  • tsjest