From 39e697cc713a0dd3e7194a50262b4910a4d37f14 Mon Sep 17 00:00:00 2001 From: Cam Jackson Date: Sun, 2 Aug 2020 22:00:37 +1000 Subject: [PATCH] docs(svelte): add reference to typescript --- docs/svelte-testing-library/setup.md | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/docs/svelte-testing-library/setup.md b/docs/svelte-testing-library/setup.md index 65a248495..c434db92e 100644 --- a/docs/svelte-testing-library/setup.md +++ b/docs/svelte-testing-library/setup.md @@ -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