mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-23 01:45:05 +08:00
chore: change to install 18 script (#52130)
* chore: add install 18 script * test: fix test case
This commit is contained in:
parent
491dfceea3
commit
113203a681
@ -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 (
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user