ant-design/components/config-provider/__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
..
__snapshots__ test: update snapshot (#35452) 2022-05-09 20:25:55 +08:00
components.test.js chore: replace demo image to public avatar resources (#32479) 2021-10-14 12:09:07 +08:00
container.test.js fix: Cascader missing props (#32143) 2021-09-13 15:59:57 +08:00
form.test.js test: wrap React.StrictMode for test cases (#35026) 2022-04-18 21:02:11 +08:00
icon.test.js fix: csp not work on icon (#34356) 2022-03-08 14:01:53 +08:00
image.test.ts test: demo -> ui test (#24475) 2020-10-23 18:50:46 +08:00
index.test.js test: migrate some test case to testing-library (#35062) 2022-04-17 22:36:36 +08:00
locale.test.js test: wrap React.StrictMode for test cases (#35026) 2022-04-18 21:02:11 +08:00
memo.test.js feat: rm Consumer usage in test case 2021-01-18 16:51:34 +08:00
static.test.js fix: message with prefixCls should not break (#29574) 2021-03-02 11:53:12 +08:00
target.test.js feat: ConfigProvider support getTargetContainer (#23751) 2020-04-29 20:22:16 +08:00
theme.test.ts perf: refactor devWarning for production code size (#35411) 2022-05-10 15:43:29 +08:00