From 6f301264644ece0df57bc32940237e43c01da0f2 Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Thu, 3 Oct 2024 09:27:53 -0500 Subject: [PATCH] fix(config): adds .png to jest mocks --- src/jest/jest.config.base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jest/jest.config.base.js b/src/jest/jest.config.base.js index 9f5b41e..1faaf81 100644 --- a/src/jest/jest.config.base.js +++ b/src/jest/jest.config.base.js @@ -13,7 +13,7 @@ module.exports = { moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'], moduleNameMapper: { '\\.(css|less|scss|sass)$': 'identity-obj-proxy', - '\\.(gif|ttf|eot|svg)$': '/__mocks__/fileMock.js', + '\\.(gif|ttf|eot|png|svg)$': '/__mocks__/fileMock.js', }, setupFilesAfterEnv: ['/jest.setup.js'], snapshotSerializers: ['@emotion/jest/serializer'],