diff --git a/.jest.js b/.jest.js index 6f712cdf65..42ccb8e678 100644 --- a/.jest.js +++ b/.jest.js @@ -25,6 +25,7 @@ module.exports = { '^react-dnd-touch-backend$': 'react-dnd-touch-backend/dist/cjs', '^react-dnd-test-backend$': 'react-dnd-test-backend/dist/cjs', '^react-dnd-test-utils$': 'react-dnd-test-utils/dist/cjs', + '\\.(css|less)$': 'identity-obj-proxy', }, testPathIgnorePatterns: ['/node_modules/', 'dekko', 'node', 'image.test.js'], transform: { diff --git a/package.json b/package.json index de4d470af8..7a03b8aff1 100644 --- a/package.json +++ b/package.json @@ -147,7 +147,6 @@ "warning": "^4.0.3" }, "devDependencies": { - "rc-virtual-list": "^1.1.0", "@ant-design/bisheng-plugin": "^2.3.0", "@ant-design/colors": "^4.0.0", "@ant-design/hitu": "^0.0.0-alpha.13", @@ -209,6 +208,7 @@ "glob": "^7.1.4", "http-server": "^0.12.0", "husky": "^4.0.3", + "identity-obj-proxy": "^3.0.0", "ignore-emit-webpack-plugin": "^2.0.2", "immutability-helper": "^3.0.0", "inquirer": "^7.1.0", @@ -235,6 +235,7 @@ "rc-queue-anim": "^1.6.12", "rc-scroll-anim": "^2.5.8", "rc-tween-one": "^2.4.1", + "rc-virtual-list": "^1.1.0", "react": "^16.9.0", "react-color": "^2.17.3", "react-copy-to-clipboard": "^5.0.1",