From b507dbfdf6d2e19f0dfe425952d99c2e45d6a48c Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sun, 23 Jul 2023 21:38:45 -0700 Subject: [PATCH] don't hardcode svelte version --- src/transformer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformer.js b/src/transformer.js index 015aff2..0b97710 100644 --- a/src/transformer.js +++ b/src/transformer.js @@ -44,7 +44,7 @@ const processAsync = async (source, filename, jestOptions) => { */ const processSync = (source, filename, jestOptions) => { const options = jestOptions && jestOptions.transformerConfig ? jestOptions.transformerConfig : {} - const { preprocess, rootMode, maxBuffer, showConsoleLog, debug, svelteVersion = '4' } = options + const { preprocess, rootMode, maxBuffer, showConsoleLog, debug, svelteVersion } = options if (!isSvelte3(svelteVersion)) { throw new Error('Jest is being called in CJS mode. You must use ESM mode in Svelte 4+')