22.0.1 • Published 7 years ago

jest-expo-ts v22.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

This package is based in jest-preset-typescript-react-native

jest-expo-ts

NPM Version License

To simplify the configuration of jest with a react-native project that is using typescript in create-react-native-app or expo.

The configuration is simply just the jest-expo preset with a couple other transformers to make jest work with ts and tsx files. After adding the preset you will be able to write your tests completely in typescript!

Alias

The package react-native-vecttor-iconsis aliased to @expo/vector-icons. Other packages can be added in the future. Let now if you need.

Install

The library can be installed with yarn with the following:

yarn add jest-expo-ts --dev

or with npm with the following:

npm install jest-expo-ts --save-dev

Usage

Add the preset to your Jest configuration :

{
  "preset": "jest-expo-ts"
}

Update react-native default settings

By default when creating a react-native project jest will be already configured for you in the package.json as follows:

"jest": {
  "preset": "react-native"
}

To update the default react-native settings just change the preset to use this library instead. Like so:

"jest": {
  "preset": "jest-expo-ts"
}

license-link: LICENSE.md

"transform-jest-deps": "^2.2.1" "peerDependencies": { "react-native": "*", "typescript": ">=2" },

22.0.1

7 years ago

22.0.0

7 years ago

22.0.0-alpha20

7 years ago

22.0.0-alpha19

7 years ago

22.0.0-alpha18

7 years ago

22.0.0-alpha17

7 years ago

22.0.0-alpha15

7 years ago

22.0.0-alpha14

7 years ago

22.0.0-alpha13

7 years ago

22.0.0-alpha12

7 years ago

22.0.0-alpha912

7 years ago

22.0.0-alpha910

7 years ago

22.0.0-alpha9

7 years ago

22.0.0-alpha8

7 years ago

22.0.0-alpha7

7 years ago

21.0.1

7 years ago

22.0.0-alpha6

7 years ago

22.0.0-alpha5

7 years ago

22.0.0-alpha4

7 years ago

22.0.0-alpha3

7 years ago

22.0.0-alpha2

7 years ago

22.0.0-alpha1

7 years ago

21.0.0

7 years ago

20.0.0

7 years ago

19.0.0

7 years ago

18.0.1

7 years ago

18.0.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago