Skip to content

Commit 7f6d773

Browse files
zombieJchenshuai2144
authored andcommitted
update jest & antd-tools & bisheng-plugin-antd (ant-design#14659)
* update deps * update test case * update bisheng * set 'aria-controls' to '' to keep jest sync
1 parent fc56fe9 commit 7f6d773

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"dom-closest": "^0.2.0",
5151
"enquire.js": "^2.1.6",
5252
"lodash": "^4.17.11",
53-
"moment": "^2.22.2",
53+
"moment": "^2.24.0",
5454
"omit.js": "^1.0.0",
5555
"prop-types": "^15.6.2",
5656
"raf": "^3.4.0",
@@ -103,10 +103,10 @@
103103
"@yesmeck/offline-plugin": "^5.0.5",
104104
"ansi-styles": "^3.2.1",
105105
"antd-theme-generator": "^1.1.4",
106-
"antd-tools": "^6.5.0",
106+
"antd-tools": "^7.0.0",
107107
"babel-eslint": "^10.0.1",
108-
"bisheng": "^1.0.0",
109-
"bisheng-plugin-antd": "^0.17.0",
108+
"bisheng": "^1.1.0",
109+
"bisheng-plugin-antd": "^1.0.0",
110110
"bisheng-plugin-description": "^0.1.4",
111111
"bisheng-plugin-react": "^1.0.0",
112112
"bisheng-plugin-toc": "^0.4.4",
@@ -184,8 +184,8 @@
184184
"xhr2": "^0.1.4"
185185
},
186186
"scripts": {
187-
"test": "jest --config .jest.js --verbose=false",
188-
"test-node": "jest --config .jest.node.js",
187+
"test": "jest --config .jest.js --verbose=false --no-cache",
188+
"test-node": "jest --config .jest.node.js --no-cache",
189189
"test-all": "./scripts/test-all.sh",
190190
"lint": "npm run lint:ts && npm run lint:es && npm run lint:demo && npm run lint:style",
191191
"lint:ts": "npm run tsc && antd-tools run ts-lint",

Diff for: tests/shared/demoTest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function ariaConvert(wrapper) {
2323

2424
// Change aria
2525
if (attribs && attribs['aria-controls']) {
26-
attribs['aria-controls'] = 'test-uuid';
26+
attribs['aria-controls'] = ''; // Remove all the aria to keep render sync in jest & jest node
2727
}
2828

2929
// Loop children

0 commit comments

Comments
 (0)