From 827be4cceb637c6270cacb3f38c9eb79d216bc7e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 6 Feb 2026 23:36:54 +0800 Subject: [PATCH] chore: bump antd-img-crop from 4.27.0 to 4.28.0 in the dev-dependencies group (#56878) * bump antd-img-crop * refactor accessibilityDemoTest * fix --------- Co-authored-by: thinkasany <480968828@qq.com> --- package.json | 2 +- tests/shared/accessibilityTest.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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); + } }); }); });