diff --git a/frontend/jest.config.js b/frontend/jest.config.js index b0c28477c..c3e6e5479 100644 --- a/frontend/jest.config.js +++ b/frontend/jest.config.js @@ -4,6 +4,7 @@ module.exports = { testEnvironment: 'jsdom', transform: { '^.+\\.tsx?$': ['ts-jest', {}], + '\\.(svg|png|jpg|jpeg|gif)$': 'jest-transform-stub', }, moduleNameMapper: { '^@/(.*)$': '/src/$1', diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 5a4edb8cb..82a04cca6 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -64,6 +64,7 @@ "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jest-fetch-mock": "^3.0.3", + "jest-transform-stub": "^2.0.0", "mini-css-extract-plugin": "^2.9.2", "path": "^0.12.7", "prettier": "^3.4.2", @@ -12488,6 +12489,13 @@ "node": ">=10" } }, + "node_modules/jest-transform-stub": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jest-transform-stub/-/jest-transform-stub-2.0.0.tgz", + "integrity": "sha512-lspHaCRx/mBbnm3h4uMMS3R5aZzMwyNpNIJLXj4cEsV0mIUtS4IjYJLSoyjRCtnxb6RIGJ4NL2quZzfIeNhbkg==", + "dev": true, + "license": "MIT" + }, "node_modules/jest-util": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index 40059cf38..d4acc9d9d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -75,6 +75,7 @@ "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jest-fetch-mock": "^3.0.3", + "jest-transform-stub": "^2.0.0", "mini-css-extract-plugin": "^2.9.2", "path": "^0.12.7", "prettier": "^3.4.2",