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:
renovate[bot] 2024-08-11 13:10:28 +08:00 committed by GitHub
parent 857ee24e38
commit d6be2b22af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -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",

View File

@ -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;