mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
chore(deps): update dependency cheerio to v1.0.0 (#50352)
* chore(deps): update dependency cheerio to v1.0.0 * Update check-site.ts Signed-off-by: afc163 <afc163@gmail.com> * Update package.json Signed-off-by: afc163 <afc163@gmail.com> * Update scripts/check-site.ts Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
857ee24e38
commit
d6be2b22af
@ -218,7 +218,7 @@
|
||||
"antd-token-previewer": "^2.0.8",
|
||||
"axios": "^1.7.2",
|
||||
"chalk": "^4.1.2",
|
||||
"cheerio": "1.0.0-rc.12",
|
||||
"cheerio": "^1.0.0",
|
||||
"circular-dependency-plugin": "^5.2.2",
|
||||
"cli-progress": "^3.12.0",
|
||||
"cross-env": "^7.0.3",
|
||||
|
@ -21,7 +21,9 @@ describe('site test', () => {
|
||||
const render = async (path: string) => {
|
||||
const resp = await fetch(`http://127.0.0.1:${port}${path}`).then(async (res) => {
|
||||
const html: string = await res.text();
|
||||
const $ = load(html, { decodeEntities: false, recognizeSelfClosing: true });
|
||||
const $ = load(html, {
|
||||
xml: true,
|
||||
});
|
||||
return { status: res.status, $ };
|
||||
});
|
||||
return resp;
|
||||
|
Loading…
Reference in New Issue
Block a user