Skip to content

Commit

Permalink
chore: update getting started docs (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
robwalkerco committed Feb 10, 2024
1 parent ebc0ff0 commit ee7db03
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-pumpkins-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-native-owl': minor
---

Switch Jest config to CLI options for Jext 28+ support
16 changes: 14 additions & 2 deletions docs/introduction/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,24 @@ Below you can find an example config (can also be found in the [example app](htt
}
```

You'll also need to add the `ts-jest` preset to your Jest config if you plan to
#### ts-jest

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
write your tests in Typescript:

```bash npm2yarn
npm install --save-dev ts-jest
ts-jest config:init
```

Then update your Jest config to use the `ts-jest` preset:
```json title="jest.config.js"
"preset": "ts-jest"
```
or
```json title="package.json"
"jest": {
"preset": "ts-jest"
}
```

### Add tests
Expand Down

0 comments on commit ee7db03

Please sign in to comment.