aboutsummaryrefslogtreecommitdiffstats
path: root/jest.config.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-10 12:16:59 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:15:27 +0100
commitd7bcd93efcd4f1ae20678d0efa6777cfadc09a4e (patch)
tree714edfa84a8f3c53262c407ac9a2a79c9d2479b8 /jest.config.js
parentf699802b837d7d9fcf150ff2bf00cd3c5475c87a (diff)
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
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js4
1 files changed, 4 insertions, 0 deletions
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', '<rootDir>/'],
+ moduleNameMapper: {
+ '^.+\\.(svg)$': '<rootDir>/tests/jest/__mocks__/svgr.mock.tsx',
+ },
+
// Add more setup options before each test is run
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],