jest-preset-typescript

1.2.0 • Public • Published

jest-preset-typescript

Build Status NPM Version

A preset that can be used to quickly get up and running with jest + typescript.

Install

yarn add jest ts-jest typescript jest-preset-typescript --dev

or with npm if that's more your style 😎

npm install jest ts-jest typescript jest-preset-typescript --save-dev

(note: if you already have the peer dependencies installed, you only need to install jest-preset-typescript!)

Then, once all dependencies are installed, simply create a jest.config.js in the root of your project with the following contents:

module.exports = {
  preset: 'jest-preset-typescript'
};

Features

All of the features come courtesy of ts-jest, so simply add this preset and you can author your tests/mocks/etc. in TypeScript, all the while getting the excellent testing capabilities of jest. 🎉

Readme

Keywords

none

Package Sidebar

Install

npm i jest-preset-typescript

Weekly Downloads

3,176

Version

1.2.0

License

MIT

Unpacked Size

4.89 kB

Total Files

7

Last publish

Collaborators

  • dschau