You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design/components/switch/__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
3 years ago
..
__snapshots__ test: Demo check popup content (#33378) 3 years ago
demo-extend.test.ts test: Demo check popup content (#33378) 3 years ago
demo.test.js Don't ignore test files. 8 years ago
image.test.ts test: demo -> ui test (#24475) 4 years ago
index.test.js perf: refactor devWarning for production code size (#35411) 3 years ago
wave.test.js test: add test case for switch click effect (#26815) 4 years ago