Skip to content

Commit

Permalink
8.8.20-Storybook-Updates (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
JEAxero authored Nov 8, 2023
1 parent 8e452cb commit 6dcc6fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ module.exports = {
webpackFinal: (config) => {
config.resolve.alias['@pega/react-sdk-components/lib/bridge/react_pconnect'] = path.resolve(__dirname, '../__mocks__/react_pconnect.jsx');
config.resolve.alias['@pega/react-sdk-components/lib/components/designSystemExtension/DetailsFields'] = path.resolve(__dirname, '../__mocks__/DetailsFields.js');
config.module.rules.push({
test: /\.(d.ts)$/,
loader: 'null-loader',
});
config.module.rules.push({
test: /\.(map)$/,
loader: 'null-loader',
});
return config;
},
};
};
3 changes: 3 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import {
} from '@pega/cosmos-react-core';

import { decorator } from "../__mocks__/react_pconnect";
import { getSdkComponentMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';

getSdkComponentMap();

export const decorators: DecoratorFn[] = [
(Story, context) => {
Expand Down

0 comments on commit 6dcc6fc

Please sign in to comment.