Skip to content

Commit

Permalink
Fix storybook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed Sep 26, 2024
1 parent 0b370f4 commit aee1f55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ module.exports = {
config.resolve.alias['../../../../../../store/actions'] = require.resolve(
'../ui/__mocks__/actions.js',
);
config.resolve.alias['@ethereumjs/util'] = require.resolve(
'../ui/__mocks__/ethereumjs-util.js',
);
config.resolve.fallback = {
child_process: false,
constants: false,
Expand Down
6 changes: 6 additions & 0 deletions ui/__mocks__/ethereumjs-util.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// eslint-disable-next-line import/no-extraneous-dependencies, node/no-extraneous-require
const util = require('ethereumjs-util');

module.exports = {
...util,
};

0 comments on commit aee1f55

Please sign in to comment.