diff --git a/package.json b/package.json index 59282f5494..810cab4552 100644 --- a/package.json +++ b/package.json @@ -223,7 +223,7 @@ "adm-zip": "^0.5.16", "ajv": "^8.17.1", "ali-oss": "^6.23.0", - "antd-img-crop": "~4.27.0", + "antd-img-crop": "~4.28.0", "antd-style": "^4.1.0", "antd-token-previewer": "^3.0.0", "axios": "^1.13.2", diff --git a/tests/shared/accessibilityTest.tsx b/tests/shared/accessibilityTest.tsx index ce150cb1e6..741cfaf8e0 100644 --- a/tests/shared/accessibilityTest.tsx +++ b/tests/shared/accessibilityTest.tsx @@ -144,8 +144,10 @@ export default function accessibilityDemoTest(component: string, options: Option const testMethod = shouldSkip ? describe.skip : describe; testMethod(`Test ${file} accessibility`, () => { - const Demo: React.ComponentType = require(`../../${file}`).default; - accessibilityTest(Demo, options.disabledRules); + if (!shouldSkip) { + const Demo: React.ComponentType = require(`../../${file}`).default; + accessibilityTest(Demo, options.disabledRules); + } }); }); });