chore: change to install 18 script (#52130)

* chore: add install 18 script

* test: fix test case
This commit is contained in:
二货爱吃白萝卜 2024-12-25 18:41:32 +08:00 committed by GitHub
parent 491dfceea3
commit 113203a681
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 10 deletions

View File

@ -125,13 +125,13 @@ describe('Form', () => {
// Wait a while and then some logic to validate
await waitFakeTimer();
try {
await act(async () => {
await act(async () => {
try {
await form.validateFields();
});
} catch {
// do nothing
}
} catch {
// do nothing
}
});
};
return (

View File

@ -54,10 +54,8 @@
"predist": "npm run version && npm run token:statistic && npm run token:meta",
"dist": "antd-tools run dist",
"format": "biome format --write .",
"install-react-16": "npm i --no-save --legacy-peer-deps react@16 react-dom@16 @testing-library/react@12",
"install-react-17": "npm i --no-save --legacy-peer-deps react@17 react-dom@17 @testing-library/react@12",
"bun-install-react-16": "bun remove react react-dom @testing-library/react && bun add --no-save react@16 react-dom@16 @testing-library/react@12",
"bun-install-react-17": "bun remove react react-dom @testing-library/react && bun add --no-save react@17 react-dom@17 @testing-library/react@12",
"install-react-18": "npm i --no-save --legacy-peer-deps react@18 react-dom@18 @testing-library/react@16",
"bun-install-react-18": "bun remove react react-dom @testing-library/react && bun add --no-save react@18 react-dom@18 @testing-library/react@16",
"prelint": "dumi setup",
"lint": "npm run version && npm run tsc && npm run lint:script && npm run lint:biome && npm run lint:md && npm run lint:style && npm run lint:changelog",
"lint:changelog": "tsx scripts/generate-component-changelog.ts",