From 963ed75800fff81587bde996a868c0ff6a11dd0e Mon Sep 17 00:00:00 2001 From: Callum Macrae Date: Thu, 23 Jan 2020 16:15:18 +0000 Subject: [PATCH] fix(addon-storyshots): Remove excess slashes from jest transform warning It's printing all of them, so I copied all of them, and that didn't work! --- 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', } ` );