MadCcc
7322aa6f5f
Revert "chore: migrate to vitest ( #42506 )" ( #42900 )
This reverts commit 6759887c44
.
1 year ago
Dunqing
6759887c44
chore: migrate to vitest ( #42506 )
* chore: migrate to vitest
* chore: update ci
* fix: test correctly
* test: support puppeteer
* chore: update coverage
* chore: update include/exclude
* chore: update config
* test: update incorrect tests
* chore: update script
* chore: update
* fix: should close browser at the ended
* chore: improve
* fix: test cause tsc error
* fix: eslint error
* chore: exclude correctly
* test: update snap and fix some tests
* chore: update test config
* fix: countup.js
* fix: incorrect test
* chore: update reference
* test: update
* fix: countup.js
* fix: timeout
* chore: update site test
* fix: fixed countup version
* chore: remove unsed code
* test: update
* test: update demo timeout
* test: update timeout
* chore: update image test
* chore: update threads
* fix: image/svg+xml test failed
* chore: limits threads
* test: update test coverage include
* chore: remove jest files
* chore: rename jest to vi
* chore: update document
* chore: fix missing @types/jsdom
* chore: update coverage
* chore: update snap
* fix:watermark test cases are incorrect
* feat: update ignore comment
* test: fix test case
* test: reset body scrollTop
* test: clean up
* test: use vi
* test: update snapshot
* test: update snapshot
* test: fix dropdown test failed
* fix: toHaveStyle cause test fail
* test: improve test case
* test: fix
* fix: color failed, refer to https://github.com/jsdom/jsdom/pull/3560
* test: fix
* test: fix
* test: fix circular import
* test: revert
* ci: coverage failed
* test: fix c8 ignore comment
* chore: incorrect config
* chore: fix ignore ci
* test: revert svg+xml
* test: fix realTimers
* feat: rc-trigger should be remove
* test: fix some failed test
* chore: remove unused deps and configure eslint-plugin-vitest
* test: update snap
* chore: remove jest
* test: fix lint error
---------
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
1 year ago
Lioness100
fd0d8b6031
docs: fix typos ( #40791 )
* docs: fix typos
* Update index.zh-CN.md
* test: update snapshot
* docs: fix demo ref
* chore: force trigger ci
* chore: force trigger ci
* chore: bump dumi ver
---------
Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2 years ago
Tom Xu
77ea4038d1
chore: remo format and remove prettierrc arrowParens ( #38722 )
2 years ago
lijianan
370c37cb30
test: js => ts ( #37485 )
2 years ago
lihao
e20314c8b2
test: move test cases to testing lib for Transfer ( #37029 )
* Transfer Test
* 修复遗漏的测试
* 修复测试 should check correctly when there is a search text
* 与之前的行为保持一致
* test:should uncheck checkbox when click on checked item
2 years ago
二货机器人
2c2c631bfd
chore: prettier components ( #36171 )
2 years ago
afc163
30ac6bd4e4
test: wrap React.StrictMode for test cases ( #35026 )
* test: React StrictMode
* test: fix Spin test
* chore: wrapper enzyme
* test: fix setState
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: disable part of it
* test: fix test & add placeholder
* test: Use orign enzyme mount
Co-authored-by: zombiej <smith3816@gmail.com>
3 years ago
二货机器人
67ccf39bd3
fix: Notification & message throw `createRoot` warning in React 18 ( #35030 )
* chore: bump notification version
* test: notification test case
* test: more test case
* test: part message test
* test: rest message test
* test: notification config test
3 years ago
二货机器人
a67c0d28d3
fix: react 18 test fixing ( #34787 )
* fix: try fix
* chore: ci
* test: recover
* test: more test case
* test: more and mote
* test: btn test
* fix: react 18 compitable
* chore: more test
* test: all confirm test
* chore: tmp
* chore: test lib
* chore: tmp
* chore: tmp
* test: back of part
* test: back of menu index test
* test: more test
* test: form test
* test: rm IE11 test case
* chore: fix compatible
* chore: clean up
* chore: back of all test case
* test: ignore 18 lines
* chore: remove render test of enzyme in upload
* test: back of IE11 test case to fit 100% coverage
* chore: fix pkg deps
3 years ago
afc163
b34f72b1b6
test: fix ci warnings ( #33160 )
3 years ago
afc163
9c17f94cab
feat: Table filterMode and filterSearch functions ( #31809 )
* feat: Table supports filterMode="tree-select"
* add tree component
* fix detail
* use tree
* add @table-filter-dropdown-max-height
* feat: add check all to filter tree
* feat: add search
* feat: use filterTreeNode
* fix code style
* fix style
* style: tree node selected bg
* fix demo
* feat: add filterSearch
* fix: clear search value after close filter dropdown
* update snapshot
* code style
* fix test case
* chore: new FilterDropdown.tsx file
* chore: searchValueMatched function
* add test case
* test: add test cases
* feat: reset only works on dropdown state now
* chore: add table locales
* fix search input width
* tweak style
* style: update transfer search input style
* perf: improve table perf
* fix: filterMuiltiple={false}
* test: add test for selecting
* chore: fix table filter selection
* fix lint
* remove unused code
* fix: style dependencies
* test: turn off bail config for duplidated-package-plugin in feature branch
* Update components/table/hooks/useFilter/FilterSearch.tsx
Co-authored-by: Peach <scdzwyxst@gmail.com>
* fix locale link
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Peach <scdzwyxst@gmail.com>
3 years ago
afc163
ea30b30d8a
test( ✅ ): fix Transfer snapshot
4 years ago
偏右
152cf6f6f5
fix: Transfer filterOption not trigger by spaces ( #26335 )
close #26208
4 years ago
偏右
8501b708ea
refactor: 📦 smaller bundlesize limit ( #20356 )
* 📦 samller bundlesize limit
* 🗑️ remove React static PropTypes
* 🗑️ remove react-lifecycles-compat
* 🗑️ remove matchMedia polyfill
* 🗑️ remove Transfer buggy lazy prop
* 🗑️ remove enquire.js dep
* 🗑️ remove Transfer lazy related code and fix ci
* 🗑️ remove used dom-closest
* ⚡ replace dom-scroll-into-view to scroll-into-view for bundle size
* ✅ fix eslint
* 🆙 upgrade browserslist
* ✅ fix test cases
* 🗑️ remove @ant-design/create-react-context
* 🆙 upgrade @ant-design/bisheng-plugin
* 🆙 upgrade rc-slider
* ✅ fix ci
* 🆙 upgrade rc-tabs and rc-mentions
* 📦 scroll-into-view -> scroll-into-view-if-needed
* remove unused devDep
* docs: 📝 update instruction about IE9/10
* 📦 reduce css bundle size by drop IE9/10 support
* 🆙 upgrade rc-upload
* 🗑️ drop unused swing motion css
* ✅ update upload snapshots
* 📦 lift css bundlesize limit to 55kb
5 years ago
afc163
5c10cf880b
✅ add more test cases for Tranfer
5 years ago
vagusX
eac30ec8e4
Feat/remove deprecated ( #17510 )
* feat: remove warnings for linkRender, nameRender in Breadcrumb
* feat: remove warnings for onOpen, onClose in Menu
* feat: remove warnings for overlay in Popover
* feat: remove warnings for columnsPageRange, columnsPageSize in Table
* feat: remove warnings for afterClose in Tag
* feat: remove warnings for notFoundContent, searchPlaceholder, body, onSearchChange in Transfer
* fix: types in Transfer
* feat: update test cases in Transfer
* feat: add additional test cases for removed deprecated apis
5 years ago
zombieJ
543b620dd2
feat: Support Transfer render ( #16026 )
* clean up
* refactor select all logic
* omit old api to render children
* add search
* remove useless code
* fix logic
* Table demo
* update demo
* fixed min-height
* fix normal style
* style update
* update snapshot
* update snapshot
* update version
* update doc
* update md desc
* update test case
* fix test typo
* update demo
* update snapshot
* typescript correction
* update docs
* add Tree Transfer demo
* default expand all
* update demo
6 years ago
偏右
ad99b4322d
test: ✅ Add eslint-plugin-jest ( #15825 )
6 years ago
zombieJ
4d1a998246
add component param in warning ( #15078 )
* add component param in warning
* update snapshot
6 years ago
陈帅
8e11f0bdb9
merge support prettier
6 years ago
陈帅
dca9715186
support prettier
6 years ago
zombieJ
ca080ac6ea
Transfer support onSearch ( #12422 )
* add onSearch
* add warning
* update doc
* add test case
* add legacy onSearchChange test
6 years ago
afc163
475e4ff23d
upgrade eslint-config-airbnb
7 years ago
Wei Zhu
1a8e738142
Set snapshotSerializers
8 years ago
Wei Zhu
07103b9fb6
Don't ignore test files.
8 years ago