From 21b3dee827e27ebf7cec5725425dcc96cdd81319 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 24 Jan 2020 01:28:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(addon-storyshots):=20Remove=20excess=20slas?= =?UTF-8?q?hes=20from=20jest=20transfor=E2=80=A6=20(#9616)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(addon-storyshots): Remove excess slashes from jest transform warning --- addons/storyshots/storyshots-core/src/Stories2SnapsConverter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/storyshots/storyshots-core/src/Stories2SnapsConverter.ts b/addons/storyshots/storyshots-core/src/Stories2SnapsConverter.ts index a2514260446b..656290f30ce6 100644 --- a/addons/storyshots/storyshots-core/src/Stories2SnapsConverter.ts +++ b/addons/storyshots/storyshots-core/src/Stories2SnapsConverter.ts @@ -43,7 +43,7 @@ export class Stories2SnapsConverter { To fix it, add following to your jest.config.js: transform: { // should be above any other js transform like babel-jest - '^.+\\\\.stories\\\\.js$': '@storybook/addon-storyshots/injectFileName', + '^.+\\.stories\\.js$': '@storybook/addon-storyshots/injectFileName', } ` );