Skip to content

Commit 827be4c

Browse files
chore: bump antd-img-crop from 4.27.0 to 4.28.0 in the dev-dependencies group (ant-design#56878)
* bump antd-img-crop * refactor accessibilityDemoTest * fix --------- Co-authored-by: thinkasany <480968828@qq.com>
1 parent 1b36daf commit 827be4c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
"adm-zip": "^0.5.16",
224224
"ajv": "^8.17.1",
225225
"ali-oss": "^6.23.0",
226-
"antd-img-crop": "~4.27.0",
226+
"antd-img-crop": "~4.28.0",
227227
"antd-style": "^4.1.0",
228228
"antd-token-previewer": "^3.0.0",
229229
"axios": "^1.13.2",

tests/shared/accessibilityTest.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ export default function accessibilityDemoTest(component: string, options: Option
144144
const testMethod = shouldSkip ? describe.skip : describe;
145145

146146
testMethod(`Test ${file} accessibility`, () => {
147-
const Demo: React.ComponentType<any> = require(`../../${file}`).default;
148-
accessibilityTest(Demo, options.disabledRules);
147+
if (!shouldSkip) {
148+
const Demo: React.ComponentType<any> = require(`../../${file}`).default;
149+
accessibilityTest(Demo, options.disabledRules);
150+
}
149151
});
150152
});
151153
});

0 commit comments

Comments
 (0)