From 7f6d7730e05984e87ef73f6e685a95d7c4a33048 Mon Sep 17 00:00:00 2001 From: zombieJ Date: Thu, 31 Jan 2019 16:07:49 +0800 Subject: [PATCH] update jest & antd-tools & bisheng-plugin-antd (#14659) * update deps * update test case * update bisheng * set 'aria-controls' to '' to keep jest sync --- package.json | 12 ++++++------ tests/shared/demoTest.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 9772442c54..3ccfaa5ebf 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "dom-closest": "^0.2.0", "enquire.js": "^2.1.6", "lodash": "^4.17.11", - "moment": "^2.22.2", + "moment": "^2.24.0", "omit.js": "^1.0.0", "prop-types": "^15.6.2", "raf": "^3.4.0", @@ -103,10 +103,10 @@ "@yesmeck/offline-plugin": "^5.0.5", "ansi-styles": "^3.2.1", "antd-theme-generator": "^1.1.4", - "antd-tools": "^6.5.0", + "antd-tools": "^7.0.0", "babel-eslint": "^10.0.1", - "bisheng": "^1.0.0", - "bisheng-plugin-antd": "^0.17.0", + "bisheng": "^1.1.0", + "bisheng-plugin-antd": "^1.0.0", "bisheng-plugin-description": "^0.1.4", "bisheng-plugin-react": "^1.0.0", "bisheng-plugin-toc": "^0.4.4", @@ -184,8 +184,8 @@ "xhr2": "^0.1.4" }, "scripts": { - "test": "jest --config .jest.js --verbose=false", - "test-node": "jest --config .jest.node.js", + "test": "jest --config .jest.js --verbose=false --no-cache", + "test-node": "jest --config .jest.node.js --no-cache", "test-all": "./scripts/test-all.sh", "lint": "npm run lint:ts && npm run lint:es && npm run lint:demo && npm run lint:style", "lint:ts": "npm run tsc && antd-tools run ts-lint", diff --git a/tests/shared/demoTest.js b/tests/shared/demoTest.js index 3b68358e66..1ab29e2875 100644 --- a/tests/shared/demoTest.js +++ b/tests/shared/demoTest.js @@ -23,7 +23,7 @@ function ariaConvert(wrapper) { // Change aria if (attribs && attribs['aria-controls']) { - attribs['aria-controls'] = 'test-uuid'; + attribs['aria-controls'] = ''; // Remove all the aria to keep render sync in jest & jest node } // Loop children