Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
typescript: {
reactDocgen: 'react-docgen-typescript-plugin'
},
webpackFinal: async (config) => {
webpackFinal: async (config, options) => {
const aliasPaths = {
src: '../src/',
utils: '../src/utils',
Expand All @@ -44,7 +44,8 @@ module.exports = {
hooks: '../src/hooks/index.ts',
indexof: '../src/utils/indexof.js',
stories: '../stories/',
components: '../src/index.ts'
components: '../src/index.ts',
__data__: '../stories/__data__/index.ts'
};

for (let aliasPath in aliasPaths) {
Expand All @@ -60,6 +61,8 @@ module.exports = {
configFile: './.storybook/.babelrc'
};

options.cache.set = () => Promise.resolve();

return config;
},
features: {
Expand Down
4 changes: 3 additions & 1 deletion configs/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ module.exports = {
'^wrappers$': '<rootDir>/src/wrappers/',
'^configs$': '<rootDir>/src/configs.js',
'^hooks$': '<rootDir>/src/hooks/',
'^components$': '<rootDir>/src/index.ts'
'^components$': '<rootDir>/src/index.ts',
'^__data__$': '<rootDir>/stories/__data__/index.ts',
d3: '<rootDir>/node_modules/d3/dist/d3.min.js'
},
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts'],
testMatch: ['**/?(*.)+(test).tsx'], // TODO add .ts also for helpers
Expand Down
3 changes: 2 additions & 1 deletion configs/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const TSComponentsList = [
'Divider',
'ImagePreview',
'Button',
'Image'
'Image',
'MapChartD3'
];

const getInputs = (name, dir) => {
Expand Down
Loading