From d7bcd93efcd4f1ae20678d0efa6777cfadc09a4e Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 10 Nov 2023 12:16:59 +0100 Subject: refactor(components): replace Overview with ProjectOverview component * `cover` prop is now expecting a ReactElement (NextImage) * `meta` prop is now limited to a specific set of meta items * add a `name` prop to add an accessible name to the figure element --- jest.config.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'jest.config.js') diff --git a/jest.config.js b/jest.config.js index 77cabb1..34f960e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -18,6 +18,10 @@ const customJestConfig = { // if using TypeScript with a baseUrl set to the root directory then you need the below for alias' to work moduleDirectories: ['node_modules', '/'], + moduleNameMapper: { + '^.+\\.(svg)$': '/tests/jest/__mocks__/svgr.mock.tsx', + }, + // Add more setup options before each test is run setupFilesAfterEnv: ['/jest.setup.js'], -- cgit v1.2.3