mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
chore(deps): update dependency react-dnd to v16 (#37840)
* chore(deps): update dependency react-dnd to v16 * Apply suggestions from code review * Update .jest.js * test: fix jest tranformer * test: fix jest tranformer * test: fix jest tranformer * test: fix jest tranformer * test: fix jest tranformer Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
9
.jest.js
9
.jest.js
@@ -1,8 +1,7 @@
|
||||
const transformIgnorePatterns = [
|
||||
'/dist/',
|
||||
// Ignore modules without es dir.
|
||||
// Update: @babel/runtime should also be transformed
|
||||
'node_modules/(?!.*@(babel|ant-design))(?!array-move)[^/]+?/(?!(es|node_modules)/)',
|
||||
'/node_modules/(?!array-move|react-dnd|react-dnd-html5-backend|@react-dnd|dnd-core|tween-one|@babel|@ant-design)[^/]+?/(?!(es)/)',
|
||||
];
|
||||
|
||||
function getTestRegex(libDir) {
|
||||
@@ -20,12 +19,6 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'md'],
|
||||
modulePathIgnorePatterns: ['/_site/'],
|
||||
moduleNameMapper: {
|
||||
'/^dnd-core$/': 'dnd-core/dist/cjs',
|
||||
'/^react-dnd$/': 'react-dnd/dist/cjs',
|
||||
'/^react-dnd-html5-backend$/': 'react-dnd-html5-backend/dist/cjs',
|
||||
'/^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', 'image.test.ts'],
|
||||
|
||||
@@ -258,8 +258,8 @@
|
||||
"react": "^17.0.0",
|
||||
"react-color": "^2.17.3",
|
||||
"react-copy-to-clipboard": "^5.0.1",
|
||||
"react-dnd": "^15.0.0",
|
||||
"react-dnd-html5-backend": "^15.0.0",
|
||||
"react-dnd": "^16.0.0",
|
||||
"react-dnd-html5-backend": "^16.0.0",
|
||||
"react-dom": "^17.0.0",
|
||||
"react-draggable": "^4.4.3",
|
||||
"react-fast-marquee": "^1.2.1",
|
||||
|
||||
Reference in New Issue
Block a user