Skip to content

Commit 34a4b9b

Browse files
Add storybook to jest esmodules config
1 parent c00d105 commit 34a4b9b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dotcom-rendering/jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const esModules = [
77
'data-uri-to-buffer',
88
'fetch-blob',
99
'formdata-polyfill',
10+
'storybook',
1011
].join('|');
1112

1213
module.exports = {

dotcom-rendering/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"jsx": "react-jsx",
88
"jsxImportSource": "@emotion/react",
99
"lib": ["esnext", "es2015", "dom"],
10+
"moduleResolution": "bundler",
1011
"noEmit": true,
1112
"noFallthroughCasesInSwitch": true,
1213
"noUncheckedIndexedAccess": true,

0 commit comments

Comments
 (0)