From b78d96e0688829c7a3a2027397c0d1f2b419963d Mon Sep 17 00:00:00 2001 From: Ross MacPhee <10212476+rossyman@users.noreply.github.com> Date: Mon, 25 Jul 2022 00:01:58 +0100 Subject: [PATCH] [enhancement: #26] Don't use relative modules path for svelte-jester transformer --- package.json | 2 +- preset.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1a433cd..acd6d61 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@rossyman/svelte-add-jest", - "version": "1.3.2", + "version": "1.3.3", "description": "SvelteKit adder for Jest unit testing", "license": "MIT", "keywords": [ diff --git a/preset.ts b/preset.ts index 79ba4fb..3f3ea69 100644 --- a/preset.ts +++ b/preset.ts @@ -201,7 +201,7 @@ class SvelteJestAdder extends Adder { Preset .editJson('jest.config.json').merge({ transform: { - '^.+\\.svelte$': ['./node_modules/svelte-jester/dist/transformer.mjs', {preprocess: true}], + '^.+\\.svelte$': ['svelte-jester/dist/transformer.mjs', {preprocess: true}], '^.+\\.ts$': 'ts-jest' }, moduleFileExtensions: ['ts'],