ts-jest
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
@babel/core | 7.24.4 | 763.3 kB | MIT | prod peer | 1 1 |
@jest/types | 29.6.3 | 8 kB | MIT | prod peer | |
babel-jest | 29.7.0 | 4.04 kB | MIT | prod peer | 1 1 |
bs-logger | 0.2.6 | 12.97 kB | MIT | prod | |
fast-json-stable-stringify | 2.1.0 | 6.17 kB | MIT | prod | |
jest-util | 29.7.0 | 10.86 kB | MIT | prod | |
jest | 29.7.0 | 2.27 kB | MIT | prod peer | 1 1 |
json5 | 2.2.3 | 49.14 kB | MIT | prod | |
lodash.memoize | 4.1.2 | 5.97 kB | MIT | prod | |
make-error | 1.3.6 | 4.33 kB | ISC | prod | |
semver | 7.6.0 | 26.57 kB | ISC | prod | |
typescript | 5.4.5 | 30.87 MB | Apache-2.0 | prod peer | |
yargs-parser | 21.1.1 | 27.94 kB | ISC | prod |
Ts-jest is a Jest transformer that comes with source map support, allowing Jest tests to be run on projects written in TypeScript. Along with support for all TypeScript features, the package provides type-checking capabilities - an essential feature for any TypeScript code handling library or tool.
To start using ts-jest in your project, first ensure that both Jest and TypeScript are installed. You can accomplish this by running npm i -D jest typescript
if you use npm or yarn add --dev jest typescript
if you prefer yarn. Next, install ts-jest and @types/jest by running npm i -D ts-jest @types/jest
on npm or yarn add --dev ts-jest @types/jest
on yarn.
After the necessary installations are complete, you can set up the configuration for ts-jest by running the command npx ts-jest config:init
for npm or yarn ts-jest config:init
for yarn. Finally, you can execute your tests by running npm test
or npx jest
on npm and yarn test
or yarn jest
on yarn.
The official documentation for ts-jest, including specific usage instructions, technical details, and more, can be found at https://kulshekhar.github.io/ts-jest. The accompanying README file available in the GitHub repository at https://github.com/kulshekhar/ts-jest also provides helpful information about the package.