From 257168d01c5871aa95d1999b4728112b198b9f45 Mon Sep 17 00:00:00 2001 From: Nothingg Date: Mon, 23 Oct 2023 13:31:34 -0500 Subject: [PATCH] fix jest, storybook fullscreen mode --- config/jest/jest.config.ts | 3 ++- config/storybook/preview.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/jest/jest.config.ts b/config/jest/jest.config.ts index a436048..f920e45 100644 --- a/config/jest/jest.config.ts +++ b/config/jest/jest.config.ts @@ -41,7 +41,8 @@ const config: Config = { setupFilesAfterEnv: ['/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'), + '^@/(.*)$': '/src/$1' }, reporters: [ 'default', diff --git a/config/storybook/preview.tsx b/config/storybook/preview.tsx index eccf064..bb030a0 100644 --- a/config/storybook/preview.tsx +++ b/config/storybook/preview.tsx @@ -23,6 +23,7 @@ const preview: Preview = { date: /Date$/, }, }, + layout: 'fullscreen', }, decorators: [ WithStyleDecorator,