diff --git a/cryptide_project/jest.config.ts b/cryptide_project/jest.config.ts index 7aac3c0..d288804 100644 --- a/cryptide_project/jest.config.ts +++ b/cryptide_project/jest.config.ts @@ -19,14 +19,15 @@ import type { Config } from '@jest/types'; const config: Config.InitialOptions = { - moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'css'], + moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'png'], transform: { '^.+\\.(js|jsx|ts|tsx)$': 'babel-jest', - '^.+\\.css$': '/babel-css-transformer.js', + '^.+\\.png$': 'identity-obj-proxy', }, moduleNameMapper: { - '\\.css$': '/empty-module.js', + '\\.(css|less)$': 'identity-obj-proxy', + '\\.(gif|ttf|eot|svg)$': '/path/to/your/empty-module.js', }, }; - + export default config; diff --git a/cryptide_project/package-lock.json b/cryptide_project/package-lock.json index 98b63f6..ba68f8b 100644 --- a/cryptide_project/package-lock.json +++ b/cryptide_project/package-lock.json @@ -46,7 +46,8 @@ "@jest/types": "^29.6.3", "@types/react-router-hash-link": "^2.4.9", "@types/uuid": "^9.0.7", - "babel-jest": "^29.7.0" + "babel-jest": "^29.7.0", + "identity-obj-proxy": "^3.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/cryptide_project/package.json b/cryptide_project/package.json index ec9808b..b849d11 100644 --- a/cryptide_project/package.json +++ b/cryptide_project/package.json @@ -64,7 +64,8 @@ "@jest/types": "^29.6.3", "@types/react-router-hash-link": "^2.4.9", "@types/uuid": "^9.0.7", - "babel-jest": "^29.7.0" + "babel-jest": "^29.7.0", + "identity-obj-proxy": "^3.0.0" }, "babel": { "presets": [