Browse Source

test: fix jest with less import (#24900)

pull/24894/head
南小北 5 years ago
committed by GitHub
parent
commit
1f04f78707
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .jest.js
  2. 3
      package.json

1
.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: {

3
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",

Loading…
Cancel
Save