ant-design/components/_util/__tests__
Karott 338ec7dad7
perf: refactor devWarning for production code size (#35411)
* pref: better code style for production

* refactor `devWarning`

* don't use `useEffect` only wrap `devWarning`

* chore: add 'noop' to coverage

* chore: add test cases for devWarning

* chore: add test case

* chore: update test cases for devWarning

* chore: restore test script command

* fix: remove 'throw new Error'

* should not use `throw` for browser

* chore: update test case for AutoComplete

* perf: add prefix for `devWarning`

* update RegExp for UMD

* add prefix for ES and CJS

* chore: better code style

* perf:

* upgrade antd-tools

* remove `injectWarningCondition`

* rename `devWarning` to `warning`

* chore: better code style

* chore: better code style

* chore: restore hasValidName
2022-05-10 15:43:29 +08:00
..
easings.test.js fix: eslint fail 2019-08-16 17:59:27 +08:00
getScroll.test.js chore: getScroll add more test (#24180) 2020-05-15 16:14:38 +08:00
getScrollNode.test.ts chore: add prettier-plugin-jsdoc (#28551) 2020-12-28 15:30:18 +08:00
responsiveObserve.test.js fix: ResponsiveObserve unsubscribe (#25309) (#25319) 2020-07-02 10:46:47 +08:00
scrollTo.test.js chore: scrollTo add more test (#24177) 2020-05-15 14:57:12 +08:00
transButton.test.js add transBtn coverage 2020-05-23 15:19:24 +08:00
useSyncState.test.js refactor: optimize code stle (#26270) 2020-08-19 09:50:04 +08:00
util.test.js test: wrap React.StrictMode for test cases (#35026) 2022-04-18 21:02:11 +08:00
warning.test.js perf: refactor devWarning for production code size (#35411) 2022-05-10 15:43:29 +08:00
wave.test.js Fix Button Wave Effect in shadow root (#29897) 2021-03-25 11:57:49 +08:00