Skip to content

Commit

Permalink
fix jest, storybook fullscreen mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nothing9537 committed Oct 23, 2023
1 parent 4143560 commit 257168d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/jest/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const config: Config = {
setupFilesAfterEnv: ['<rootDir>/config/jest/jest-dom.setup.ts'],
moduleNameMapper: {
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
'\\.svg': path.resolve(__dirname, 'jestMockSvg.tsx')
'\\.svg': path.resolve(__dirname, 'jestMockSvg.tsx'),
'^@/(.*)$': '<rootDir>/src/$1'
},
reporters: [
'default',
Expand Down
1 change: 1 addition & 0 deletions config/storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const preview: Preview = {
date: /Date$/,
},
},
layout: 'fullscreen',
},
decorators: [
WithStyleDecorator,
Expand Down

0 comments on commit 257168d

Please sign in to comment.