From 3068750d45dd31fb3f5644b31044c23863c56203 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 26 Nov 2023 10:24:00 +0800 Subject: [PATCH 01/10] chore(deps): update dependency vanilla-jsoneditor to ^0.19.0 (#46090) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f5efb97574..05f4d96bf2 100644 --- a/package.json +++ b/package.json @@ -309,7 +309,7 @@ "tsx": "^4.1.0", "typedoc": "^0.25.0", "typescript": "~5.2.2", - "vanilla-jsoneditor": "^0.18.0", + "vanilla-jsoneditor": "^0.19.0", "vanilla-tilt": "^1.8.1", "webpack": "^5.89.0", "webpack-bundle-analyzer": "^4.1.0", From f96100ce6302b7fdda60fd5e1010ae6f7772987a Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Mon, 27 Nov 2023 10:12:31 +0800 Subject: [PATCH 02/10] chore(deps): bump typescript from 5.2.2 to 5.3.0 (#45970) * chore(deps): bump typescript to 5.3.0 * Update package.json Signed-off-by: lijianan <574980606@qq.com> --------- Signed-off-by: lijianan <574980606@qq.com> --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 05f4d96bf2..21d06aaf51 100644 --- a/package.json +++ b/package.json @@ -307,8 +307,8 @@ "sylvanas": "^0.6.1", "terser": "^5.16.1", "tsx": "^4.1.0", - "typedoc": "^0.25.0", - "typescript": "~5.2.2", + "typedoc": "^0.25.4", + "typescript": "~5.3.0", "vanilla-jsoneditor": "^0.19.0", "vanilla-tilt": "^1.8.1", "webpack": "^5.89.0", From 363559d6672c6b538e3b8673796db44c48557b92 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Mon, 27 Nov 2023 10:15:01 +0800 Subject: [PATCH 03/10] chore(deps): bump jsdom from 22.0.0 to 23.0.0 (#46093) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 21d06aaf51..41e05876f9 100644 --- a/package.json +++ b/package.json @@ -258,7 +258,7 @@ "jest-image-snapshot": "^6.0.0", "jest-puppeteer": "^9.0.0", "jquery": "^3.4.1", - "jsdom": "^22.0.0", + "jsdom": "^23.0.0", "jsonml-to-react-element": "^1.1.11", "jsonml.js": "^0.1.0", "lint-staged": "^15.0.0", From 6b8e080b79040ff754b69e5678e9e3f0e5f7ab7c Mon Sep 17 00:00:00 2001 From: vagusX Date: Mon, 27 Nov 2023 11:22:14 +0800 Subject: [PATCH 04/10] ci: add visual-regression presist yml for master branch (#46086) Co-authored-by: MadCcc --- .../visual-regression-persist-finish.yml | 107 ++++++++++++++++++ .../visual-regression-persist-start.yml | 92 +++++++++++++++ 2 files changed, 199 insertions(+) create mode 100644 .github/workflows/visual-regression-persist-finish.yml create mode 100644 .github/workflows/visual-regression-persist-start.yml diff --git a/.github/workflows/visual-regression-persist-finish.yml b/.github/workflows/visual-regression-persist-finish.yml new file mode 100644 index 0000000000..af7a76ecff --- /dev/null +++ b/.github/workflows/visual-regression-persist-finish.yml @@ -0,0 +1,107 @@ +# Each `push on master` will persist image-snapshots that used as compare target in visual regression. + +name: Visual Regression Persist Finish + +on: + workflow_run: + workflows: ["name: Visual Regression Persist Start"] + types: + - completed + +permissions: + contents: read + +jobs: + upstream-workflow-summary: + name: upstream workflow summary + runs-on: ubuntu-latest + outputs: + jobs: ${{ steps.persist_start_job_status.outputs.result }} + build-success: ${{ steps.persist_start_job_status.outputs.build-success }} + build-failure: ${{ steps.persist_start_job_status.outputs.build-failure }} + steps: + - name: summary jobs status + uses: actions/github-script@v6 + id: persist_start_job_status + with: + # todo: split it out as github actions + script: | + const response = await github.rest.actions.listJobsForWorkflowRun({ + owner: context.repo.owner, + repo: context.repo.repo, + run_id: ${{ github.event.workflow_run.id }}, + }); + + // { [name]: [conclusion] }, e.g. { 'test image': 'success' } + const jobs = (response.data?.jobs ?? []).reduce((acc, job) => { + if(job?.status === 'completed' && 'name' in job && 'conclusion' in job) { + acc[job.name] = job.conclusion; + } + return acc; + }, {}); + + const total = Object.keys(jobs).length; + if(total === 0) core.setFailed('no jobs found'); + + // the name here must be the same as `jobs.xxx.{name}` in preview-build.yml + // set output + core.setOutput('build-success', jobs['test image'] === 'success'); + core.setOutput('build-failure', jobs['test image'] === 'failure'); + return jobs; + + persist-image-snapshots: + name: persist image-snapshots + permissions: + actions: read # for dawidd6/action-download-artifact to query and download artifacts + runs-on: ubuntu-latest + needs: upstream-workflow-summary + steps: + # We need get persist key first + - name: Download Visual Regression Ref + uses: dawidd6/action-download-artifact@v2 + with: + workflow: ${{ github.event.workflow_run.workflow_id }} + run_id: ${{ github.event.workflow_run.id }} + name: visual-regression-persist-ref + + # Save visual-regression ref to output + - name: Extra Visual Regression Ref + id: visuall-regression + run: echo "id=$(> $GITHUB_OUTPUT + + - name: Download Visual-Regression Artifact + if: ${{ fromJSON(needs.upstream-workflow-summary.outputs.build-success) }} + uses: dawidd6/action-download-artifact@v2 + with: + workflow: ${{ github.event.workflow_run.workflow_id }} + run_id: ${{ github.event.workflow_run.id }} + name: image-snapshots + path: imageSnapshots + + - name: Persist to Snapshot Repo + if: github.event.pull_request.head.ref == 'master' + id: persist + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.ANTD_IMAGE_SNAP_REPO_TOKEN }} + # should push to snapshot repo firstly + # push the single folder to the repo + run: | + git config user.name "Antd Visual-Regression Bot" + git config user.email "<>" + + git clone git@github.com:ant-design/antd-image-snapshots.git + rm antd-image-snapshots/*.txt + rm -rf antd-image-snapshots/imageSnapshots + + mv visual-regression-ref.txt antd-image-snapshots/ + mv ./imageSnapshots antd-image-snapshots/ + + cd antd-image-snapshots + git add . + git cm -m 'feat: update snapshot from ${{steps.visuall-regression.outputs.id}}' + + git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | \ + xargs -L1 git config --unset-all + + git push --prune https://token:$GITHUB_TOKEN@github.com/ant-design/antd-image-snapshots.git +refs/remotes/origin/*:refs/heads/* +refs/tags/*:refs/tags/* diff --git a/.github/workflows/visual-regression-persist-start.yml b/.github/workflows/visual-regression-persist-start.yml new file mode 100644 index 0000000000..a565515966 --- /dev/null +++ b/.github/workflows/visual-regression-persist-start.yml @@ -0,0 +1,92 @@ +# Each `push on master` will persist image-snapshots that used as compare target in visual regression. + +name: Visual Regression Persist Start + +on: + push: + branches: + - master + +permissions: + contents: read + +jobs: + # Prepare node modules. Reuse cache if available + setup: + name: prepare node_modules + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: cache package-lock.json + uses: actions/cache@v3 + with: + path: package-temp-dir + key: lock-${{ github.sha }} + + - name: create package-lock.json + run: npm i --package-lock-only --ignore-scripts + + - name: hack for single file + run: | + if [ ! -d "package-temp-dir" ]; then + mkdir package-temp-dir + fi + cp package-lock.json package-temp-dir + - name: cache node_modules + id: node_modules_cache_id + uses: actions/cache@v3 + with: + path: node_modules + key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} + + - name: install + if: steps.node_modules_cache_id.outputs.cache-hit != 'true' + run: npm ci + + test-image: + name: test image + runs-on: ubuntu-latest + needs: setup + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: restore cache from package-lock.json + uses: actions/cache@v3 + with: + path: package-temp-dir + key: lock-${{ github.sha }} + + - name: restore cache from node_modules + uses: actions/cache@v3 + with: + path: node_modules + key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} + + - name: generate image snapshots + id: site + run: npm run test-image + env: + SITE_ENV: development + NODE_OPTIONS: "--max_old_space_size=4096" + + # Upload `imageSnapshots` on master + - name: upload report artifact + uses: actions/upload-artifact@v3 + with: + name: image-snapshots + path: imageSnapshots/ + + # Upload git ref for next workflow `visual-regression-persist-finish` use + - name: Save persist key + if: ${{ always() }} + run: echo ${{ github.sha }} > ./visual-regression-ref.txt + + - name: Upload persist key + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: visual-regression-persist-ref + path: ./visual-regression-ref.txt From 2938a8c828c70bbdcbe14ef2c57aebd9752b5b4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E6=9E=AB?= <7971419+crazyair@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:56:43 +0800 Subject: [PATCH 05/10] fix(DatePicker): fix datePicker disabled hover style (#45940) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(DatePicker): fix datePicker hover style * feat: remove hover css * fix: lint * fix: lint * feat: remove comoponentCls * feat: 恢复 * feat: use [disabled] --------- Co-authored-by: afc163 --- components/input/style/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/input/style/index.ts b/components/input/style/index.ts index 0537ce0756..fe6facb12e 100644 --- a/components/input/style/index.ts +++ b/components/input/style/index.ts @@ -121,7 +121,7 @@ export const genDisabledStyle = (token: InputToken): CSSObject => ({ cursor: 'not-allowed', opacity: 1, - '&:hover': { + '&:hover:not([disabled])': { ...genHoverStyle( mergeToken(token, { hoverBorderColor: token.colorBorder, From 8f566a028b546fa3b74e07120ea5c81cc5e5458e Mon Sep 17 00:00:00 2001 From: vagusX Date: Mon, 27 Nov 2023 15:48:42 +0800 Subject: [PATCH 06/10] ci: use puppeteer image in gh actions (#46100) --- .github/workflows/visual-regression-persist-start.yml | 5 ++++- .gitignore | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/visual-regression-persist-start.yml b/.github/workflows/visual-regression-persist-start.yml index a565515966..946c3213e3 100644 --- a/.github/workflows/visual-regression-persist-start.yml +++ b/.github/workflows/visual-regression-persist-start.yml @@ -15,6 +15,7 @@ jobs: setup: name: prepare node_modules runs-on: ubuntu-latest + container: ghcr.io/puppeteer/puppeteer:21.5.2 steps: - name: checkout uses: actions/checkout@v4 @@ -67,7 +68,9 @@ jobs: - name: generate image snapshots id: site - run: npm run test-image + run: | + npm run version + npm run test-image env: SITE_ENV: development NODE_OPTIONS: "--max_old_space_size=4096" diff --git a/.gitignore b/.gitignore index fc7b9febbb..a5fc77cb9e 100644 --- a/.gitignore +++ b/.gitignore @@ -61,7 +61,7 @@ components/version/token-meta.json __diff_output__/ __image_snapshots__/ /jest-stare -/imageSnapshots +/imageSnapshots* /imageDiffSnapshots .devcontainer* From 222ed130328b0e8e0f2c04bbfc8160f2d67a87f9 Mon Sep 17 00:00:00 2001 From: MadCcc Date: Mon, 27 Nov 2023 17:34:17 +0800 Subject: [PATCH 07/10] chore: rm copilot4pr (#46095) --- .github/PULL_REQUEST_TEMPLATE.md | 15 --------------- .github/PULL_REQUEST_TEMPLATE/pr_cn.md | 14 -------------- 2 files changed, 29 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f2b6233dbf..c5bf95428f 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -61,18 +61,3 @@ Describe changes from the user side, and list all potential break changes or oth - [ ] Demo is updated/provided or not needed - [ ] TypeScript definition is updated/provided or not needed - [ ] Changelog is provided or not needed - ---- - - - -### 🚀 Summary - -copilot:summary - -### 🔍 Walkthrough - -copilot:walkthrough diff --git a/.github/PULL_REQUEST_TEMPLATE/pr_cn.md b/.github/PULL_REQUEST_TEMPLATE/pr_cn.md index a72aa0c3ea..046c0c2f54 100644 --- a/.github/PULL_REQUEST_TEMPLATE/pr_cn.md +++ b/.github/PULL_REQUEST_TEMPLATE/pr_cn.md @@ -61,17 +61,3 @@ - [ ] 代码演示已提供或无须提供 - [ ] TypeScript 定义已补充或无须补充 - [ ] Changelog 已提供或无须提供 - ---- - - - -### 🚀 概述 - -copilot:summary - -### 🔍 实现细节 - -copilot:walkthrough From 0e360ed861d0d346e5b93dff5e166b502d0a19da Mon Sep 17 00:00:00 2001 From: MadCcc Date: Mon, 27 Nov 2023 17:53:05 +0800 Subject: [PATCH 08/10] chore: bump antd-tools version (#46103) * chore: bump antd-tools version * chore: bump --- .dumi/theme/builtins/Previewer/CodePreviewer.tsx | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.dumi/theme/builtins/Previewer/CodePreviewer.tsx b/.dumi/theme/builtins/Previewer/CodePreviewer.tsx index 4f4bb6c3b1..84607c9aaa 100644 --- a/.dumi/theme/builtins/Previewer/CodePreviewer.tsx +++ b/.dumi/theme/builtins/Previewer/CodePreviewer.tsx @@ -255,7 +255,7 @@ const CodePreviewer: React.FC = (props) => { 'react@18/umd/react.development.js', 'react-dom@18/umd/react-dom.development.js', 'dayjs@1/dayjs.min.js', - `antd@${pkg.version}/dist/antd-with-locales.js`, + `antd@${pkg.version}/dist/antd-with-locales.min.js`, `@ant-design/icons/dist/index.umd.js`, 'react-router-dom/dist/umd/react-router-dom.production.min.js', 'react-router/dist/umd/react-router.production.min.js', diff --git a/package.json b/package.json index 41e05876f9..ba711a3494 100644 --- a/package.json +++ b/package.json @@ -164,7 +164,7 @@ "devDependencies": { "@ant-design/compatible": "^5.1.2", "@ant-design/happy-work-theme": "^1.0.0", - "@ant-design/tools": "^18.0.0", + "@ant-design/tools": "^18.0.2", "@antv/g6": "^4.8.13", "@argos-ci/core": "^1.0.0", "@babel/eslint-plugin": "^7.19.1", From f38abb243e54b472b85f5dc2d1c3504ca751b0b6 Mon Sep 17 00:00:00 2001 From: MadCcc Date: Mon, 27 Nov 2023 19:15:04 +0800 Subject: [PATCH 09/10] docs: 5.11.5 (#46104) * docs: 5.11.5 * chore: update --- CHANGELOG.en-US.md | 7 +++++++ CHANGELOG.zh-CN.md | 7 +++++++ package.json | 2 +- scripts/post-script.ts | 1 + 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 0bccd8420e..0d3a5a5acf 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -16,6 +16,13 @@ tag: vVERSION --- +## 5.11.5 + +`2023-11-27` + +- 🐞 MISC: Fix error in `dist` artifact. [#46103](https://github.com/ant-design/ant-design/pull/46103) [@MadCcc](https://github.com/MadCcc) +- 💄 Fix DatePicker style when disabled and hovered. [#45940](https://github.com/ant-design/ant-design/pull/45940) [@crazyair](https://github.com/crazyair) + ## 5.11.4 `2023-11-24` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 8d3756a2c5..2bcd53f592 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -16,6 +16,13 @@ tag: vVERSION --- +## 5.11.5 + +`2023-11-27` + +- 🐞 MISC: 修复打包 `dist` 产物错误。[#46103](https://github.com/ant-design/ant-design/pull/46103) [@MadCcc](https://github.com/MadCcc) +- 💄 修复 DatePicker 禁用状态下悬浮样式。[#45940](https://github.com/ant-design/ant-design/pull/45940) [@crazyair](https://github.com/crazyair) + ## 5.11.4 `2023-11-24` diff --git a/package.json b/package.json index ba711a3494..109d706c43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd", - "version": "5.11.4", + "version": "5.11.5", "description": "An enterprise-class UI design language and React components implementation", "keywords": [ "ant", diff --git a/scripts/post-script.ts b/scripts/post-script.ts index d58f608ab0..082faa404f 100644 --- a/scripts/post-script.ts +++ b/scripts/post-script.ts @@ -51,6 +51,7 @@ const DEPRECIATED_VERSION = { '5.11.0': ['https://github.com/ant-design/ant-design/issues/45742'], '5.11.1': ['https://github.com/ant-design/ant-design/issues/45883'], '5.11.2': ['https://github.com/ant-design/ant-design/issues/46005'], + '5.11.4': ['https://github.com/ant-design/ant-design/pull/46103'], } as const; function matchDeprecated(v: string) { From 5012049923b7442ea90ce36b60ab224e6aef0b70 Mon Sep 17 00:00:00 2001 From: MadCcc Date: Mon, 27 Nov 2023 21:37:32 +0800 Subject: [PATCH 10/10] chore: add ci to test antd.min.js (#46108) * chore: add ci to test antd.min.js * chore: update * chore: update * chore: update * chore: code clean --- .github/workflows/test.yml | 11 +++++++++-- .jest.js | 2 +- scripts/test-all.sh | 8 ++++++++ tests/index.test.ts | 14 ++++++++++++-- tests/setupAfterEnv.ts | 10 ++++------ tests/shared/demoTest.tsx | 7 ++++++- 6 files changed, 40 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2e295185ab..48d80d6a9b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -141,7 +141,7 @@ jobs: strategy: matrix: react: ['16', '17', '18'] - module: ['dom', 'node', 'dist'] + module: ['dom', 'node', 'dist', 'dist-min'] shard: ['1/2', '2/2'] env: REACT: ${{ matrix.react }} @@ -179,7 +179,7 @@ jobs: run: npm run install-react-18 - name: restore cache from dist - if: ${{ matrix.module == 'dist' }} + if: ${{ matrix.module == 'dist' || matrix.module == 'dist-min' }} uses: actions/cache@v3 with: path: dist @@ -224,6 +224,13 @@ jobs: run: npm test env: LIB_DIR: dist + + # dist min test + - name: dist-min test + if: ${{ matrix.module == 'dist-min' }} + run: npm test + env: + LIB_DIR: dist-min needs: [setup, dist] ############################ Test Coverage ########################### diff --git a/.jest.js b/.jest.js index 6db689d217..d71c4e8497 100644 --- a/.jest.js +++ b/.jest.js @@ -23,7 +23,7 @@ const transformIgnorePatterns = [ ]; function getTestRegex(libDir) { - if (['dist', 'lib', 'es'].includes(libDir)) { + if (['dist', 'lib', 'es', 'dist-min'].includes(libDir)) { return 'demo\\.test\\.(j|t)sx?$'; } return '.*\\.test\\.(j|t)sx?$'; diff --git a/scripts/test-all.sh b/scripts/test-all.sh index c62564827c..d82a864a8b 100755 --- a/scripts/test-all.sh +++ b/scripts/test-all.sh @@ -75,6 +75,14 @@ else echo "[TEST ALL] dist test...skip" fi +if ! has_arg '--skip-dist' "$@"; then + echo "[TEST ALL] dist-min test" + echo "[TEST ALL] dist-min test" > ~test-all.txt + LIB_DIR=dist-min npm test -- --bail +else + echo "[TEST ALL] dist test...skip" +fi + if ! has_arg '--skip-es' "$@"; then echo "[TEST ALL] test es" echo "[TEST ALL] test es" > ~test-all.txt diff --git a/tests/index.test.ts b/tests/index.test.ts index 5261565775..bbc286a7e8 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -1,13 +1,23 @@ +/* eslint-disable global-require */ import pkg from '../package.json'; const testDist = process.env.LIB_DIR === 'dist'; +const testDistMin = process.env.LIB_DIR === 'dist-min'; describe('antd dist files', () => { // https://github.com/ant-design/ant-design/issues/1638 // https://github.com/ant-design/ant-design/issues/1968 it('exports modules correctly', () => { - // eslint-disable-next-line global-require,import/no-unresolved - const antd = testDist ? require('../dist/antd') : require('../components'); + let antd; + if (testDist) { + // eslint-disable-next-line import/no-unresolved + antd = require('../dist/antd'); + } else if (testDistMin) { + // eslint-disable-next-line import/no-unresolved + antd = require('../dist/antd.min'); + } else { + antd = require('../components'); + } expect(Object.keys(antd)).toMatchSnapshot(); }); diff --git a/tests/setupAfterEnv.ts b/tests/setupAfterEnv.ts index 974bb9b650..0d71e44999 100644 --- a/tests/setupAfterEnv.ts +++ b/tests/setupAfterEnv.ts @@ -8,13 +8,11 @@ import { defaultConfig } from '../components/theme/internal'; defaultConfig.hashed = false; if (process.env.LIB_DIR === 'dist') { - jest.mock('../dist/antd', () => { - const antd = jest.requireActual('../dist/antd'); - antd.theme.defaultConfig.hashed = false; - - return antd; - }); + jest.mock('antd', () => jest.requireActual('../dist/antd')); +} else if (process.env.LIB_DIR === 'dist-min') { + jest.mock('antd', () => jest.requireActual('../dist/antd.min')); } else if (process.env.LIB_DIR === 'es') { + jest.mock('antd', () => jest.requireActual('../es')); jest.mock('../es/theme/internal', () => { const esTheme = jest.requireActual('../es/theme/internal'); if (esTheme.defaultConfig) { diff --git a/tests/shared/demoTest.tsx b/tests/shared/demoTest.tsx index 538a4a3c7e..63bac11c88 100644 --- a/tests/shared/demoTest.tsx +++ b/tests/shared/demoTest.tsx @@ -11,6 +11,7 @@ import { render } from '../utils'; import { TriggerMockContext } from './demoTestContext'; import { excludeWarning, isSafeWarning } from './excludeWarning'; import rootPropsTest from './rootPropsTest'; +import { ConfigProvider } from 'antd'; export { rootPropsTest }; @@ -60,7 +61,11 @@ function baseText(doInject: boolean, component: string, options: Options = {}) { } // Inject cssinjs cache to avoid create