Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions docs/svelte-testing-library/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,10 @@ with any testing framework and runner you're comfortable with.

## Typescript

In order to support Typescript, you need to enable `preprocess`.

1. Update your jest configuration

```json
{
"jest": {
"transform": {
"^.+\\.svelte$": ["svelte-jester", { "preprocess": true }]
},
"moduleFileExtensions": ["js", "ts", "svelte"]
}
}
```
To use Typescript, you'll need to install and configure `svelte-preprocess` and
`ts-jest`. For full instructions, see the
[`svelte-jester` docs](https://github.com/mihar-22/svelte-jester#typescript)
docs.

## Babel / Preprocessors

Expand Down