Skip to content

Commit ee7db03

Browse files
authored
chore: update getting started docs (#171)
1 parent ebc0ff0 commit ee7db03

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.changeset/thin-pumpkins-fly.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-native-owl': minor
3+
---
4+
5+
Switch Jest config to CLI options for Jext 28+ support

docs/introduction/getting-started.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,24 @@ Below you can find an example config (can also be found in the [example app](htt
3636
}
3737
```
3838

39-
You'll also need to add the `ts-jest` preset to your Jest config if you plan to
39+
#### ts-jest
40+
41+
You'll also need to add the [`ts-jest` preset](https://huafu.github.io/ts-jest/user/config/) to your Jest config if you plan to
4042
write your tests in Typescript:
4143

4244
```bash npm2yarn
4345
npm install --save-dev ts-jest
44-
ts-jest config:init
46+
```
47+
48+
Then update your Jest config to use the `ts-jest` preset:
49+
```json title="jest.config.js"
50+
"preset": "ts-jest"
51+
```
52+
or
53+
```json title="package.json"
54+
"jest": {
55+
"preset": "ts-jest"
56+
}
4557
```
4658

4759
### Add tests

0 commit comments

Comments
 (0)