Skip to content

Commit 39e697c

Browse files
committed
docs(svelte): add reference to typescript
1 parent c383b44 commit 39e697c

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

docs/svelte-testing-library/setup.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,10 @@ with any testing framework and runner you're comfortable with.
7474
7575
## Typescript
7676
77-
In order to support Typescript, you need to enable `preprocess`.
78-
79-
1. Update your jest configuration
80-
81-
```json
82-
{
83-
"jest": {
84-
"transform": {
85-
"^.+\\.svelte$": ["svelte-jester", { "preprocess": true }]
86-
},
87-
"moduleFileExtensions": ["js", "ts", "svelte"]
88-
}
89-
}
90-
```
77+
To use Typescript, you'll need to install and configure `svelte-preprocess` and
78+
`ts-jest`. For full instructions, see the
79+
[`svelte-jester` docs](https://github.com/mihar-22/svelte-jester#typescript)
80+
docs.
9181
9282
## Babel / Preprocessors
9383

0 commit comments

Comments
 (0)