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
luo3house
4f819ea4ef
fix(useModal): forward modal config ( #41422 )
2 years ago
Danial Soheili
164ea65250
Bugfix/modal destroy all with context ( #40281 )
* 🐞 FIX: destroyAll not working with useModal
* 🧪 TEST: add test
* Update components/modal/useModal/index.tsx
Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: Amumu <yoyo837@hotmail.com>
2 years ago
MadCcc
663d1454f2
chore: fix ci ( #39811 )
* chore: fix ci
* chore: code clean
* chore: update form test
* chore: test
2 years ago
二货爱吃白萝卜
fe8d59754e
fix: Modal hooks not pass CP ( #39513 )
* fix: CP pass not override
* test: Update test case
* docs: missing demo
2 years ago
Tom Xu
77ea4038d1
chore: remo format and remove prettierrc arrowParens ( #38722 )
2 years ago
hms181231
46c846a34c
test: Update modal test case ( #38288 )
2 years ago
Wuxh
16ecdbb58d
fix(modal): Modal.xxx onCancel close argument is not a function ( #36600 )
* fix(modal): fix the error of `onCancel` parameter of modal returned by `useModal`
resolve: 36581
ref: https://github.com/ant-design/ant-design/issues/36581#issuecomment-1189396007
* test(confirm): 补充 modal 测试用例
* test(modal): 添加测试用例
* Revert "fix(modal): fix the error of `onCancel` parameter of modal returned by `useModal`"
This reverts commit e4fcb3e62add63193ec9081b2c21e657379bebfb.
* fix(modal): fix modal onOk/onCancel method is not a valid function when there is a close parameter
closed : #36581
* chore: cancel the introduction of `noop` from third-party library
2 years ago
二货机器人
2c2c631bfd
chore: prettier components ( #36171 )
2 years ago
Yuki Zhang
b46e839a5f
test: move test cases to @testing/library for Modal ( #35785 )
* test: move test cases to @testing/library for Modal
* update
* fix: test
* test: add test case for mouse position
* chore: revert
3 years ago
xrkffgg
c1a539b696
test: add modal hook content with direction ( #31882 )
3 years ago
二货机器人
992b99c011
fix: Modal hooks update & destroy ( #29584 )
* fix: Modal update before render
* test: Add test case
* test: More test
4 years ago
JuniorTour
e063a3a139
fix: hook modal not trigger onCancel ( #28063 )
4 years ago
二货机器人
442c146e3c
refator: update rc-dialog to remove `rc-animate` ( #26940 )
* chore: bump rc-dialog
* fix 1 test case
* test case
* more test
* fix confirm test case
* clean up
* fix snapshot
* update local-provider snapshot
* update Modal snapshot
* fix test of dialog hook
* fix lint
4 years ago
二货机器人
9fdad14dc0
fix: useModal missing prefix ( #25967 )
* fix: useModal hooks missing style
* add test case
4 years ago
二货机器人
d02c486052
feat: Modal support hooks ( #20949 )
* init hooks
* portal it in
* children with 2 context demo
* Remove config since not more second demo
* Quit with same Component for logic reuse
* add rest functions
* use localeReceiver
* use localeReceiver
* update test case
* fix lint
* update docs
* update demo title
5 years ago