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
renovate[bot]
dde293a012
chore(deps): update dependency countup.js to v2.6.2 ( #42196 )
* chore(deps): update dependency countup.js to v2.6.2
* test: add countup.js to jest transformIgnorePatterns
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2 years ago
MadCcc
853283b7e4
docs: DatePicker design tab ( #40745 )
* docs: DatePicker design tab
* docs: add design demo
* docs: add anchor for design demo
* docs: init g6
* docs: behavior map
* test: fix test cov
* docs: behavior map comp
* docs: add map title
* docs: fix ssr
* docs: update demo
* docs: optimize copy ux
* docs: update demo
* chore: code clean
2 years ago
linxianxi
c48c712371
demo: remove react-dnd, use dnd-kit ( #40674 )
* demo: remove react-dnd, use dnd-kit
* change type
2 years ago
二货爱吃白萝卜
1fc374495f
chore: patch for missing rootClassName ( #40217 )
* chore: init test
* test: rootClassName inject
* test: part of test
* chore: patch qrcode rootCls
* chore: part rootClassName
* chore: part rootClassName
* test: more test
* test: more test
* test: more test
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* test: more test
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: fix lint
* chore: fix lint
* chore: ignore part of lint
* test: update snapshot
* test: fix test case
* chore: fix node test
* chore: adjust render logic
* fix: test
* test: update snapshot
* test: update
* refactor
* chore: fix require module logic
2 years ago
afc163
b554e061ee
chore: replace react-sticky to react-sticky-box in Tabs demo ( #39898 )
* docs: replace react-sticky to react-sticky-box in Tabs demo
* test: fix test case
2 years ago
afc163
cf41f81dc7
chore: replace react-sticky to react-sticky-box in Tabs demo ( #39898 )
* docs: replace react-sticky to react-sticky-box in Tabs demo
* test: fix test case
2 years ago
二货爱吃白萝卜
614389ed70
chore: skip useless part ( #39422 )
2 years ago
二货机器人
2d335e65e4
chore: adjust jest max worker
2 years ago
JarvisArt
6f83c63d74
feat: New Component Watermark ( #39064 )
* feat: New Component Watermark
* docs: add watermark docs
* docs: add watermark demo
* test: add watermark test
* test: add watermark snapshot
* chore: add jest-canvas-mock
* feat: Watermark calculates the width and height of content by default
* docs: update docs
* docs: update demo
* test: update snapshot
* docs: update docs
* chore: update bundlesize
* chore: Optimize code logic
* chore: update size-limit
* test: update watermark snapshot
2 years ago
二货爱吃白萝卜
cbcfd38ca7
docs: v5 site upgrade ( #38328 )
* build: try to use dumi as doc tool
* docs: migrate demo structure to dumi way
* refactor: use type export & import
* docs: migrate demo previewer to dumi
* docs: create empty layout & components
* docs: apply custom rehype plugin
* docs: create empty extra pages
* docs: Add Banner component
* chore: move theme tsconfig.json
* docs: home page init
* docs: migrate header (#37896 )
* docs: header
* docs: update
* docs: home init
* clean up
* test: fix site lint
* chore: tsc ignore demo
* chore: dumi demo migrate script
* chore: cards
* docs: home layout
* docs: Update locale logic
* docs: fix getLink logic
* chore: fix ci (#37899 )
* chore: fix ci
* ci: remove check-ts-demo
* ci: preview build
* test: ignore demo.tsx
* chore: update script
* test: update snapshot
* test: update node and image test
* chore: add .surgeignore
* docs: layout providers (#37908 )
* docs: add components sidebar (#37923 )
* docs: sidebar
* docs: update docs title
* docs: update design doc
* chore: code clean
* docs: handle changelog page
* docs: add title
* docs: add subtitle
* docs: active header nav
* chore: code clean
* docs: overview
* chore: code clean
* docs: update intl (#37918 )
* docs: update intl
* chore: code clean
* docs: update favicons
* chore: update testPathIgnorePatterns
* chore: code clean
* chore: code clean
* chore: copy 404.html (#37996 )
* docs: Home page theme picker
* chore: Update migrate script
* docs: home page update
* docs: theme editor style
* docs: theme lang
* chore: update migrate.js
* docs: fix demo (#38094 )
* chore: update migrate.js
* docs: update md
* docs: update demo
* test: fix snapshot
* chore: move debug to code attr in migrate script
* chore: update md
Co-authored-by: PeachScript <scdzwyxst@gmail.com>
* feat: overview page
* feat: Migrate `404` page (#38118 )
* feat: migrate IconSearch component (#37916 )
* feat<site/IconSearch>: copy IconDisplay from site to .dumi
* feat<site/IconSearch>: change docs of icon
* feat<site/IconSearch>: tweak
* feat<site/IconSearch>: use useIntl instead of injectIntl
* feat<site/IconSearch>: fix ts type error
* feat<site/IconSearch>: use intl.formatMessage to render text
* docs: Adjust home btn sizw
* docs: Update doc
* feat: v5 site overview page (#38131 )
* feat: site
* fix: fix
* feat: v5 site overview page
* fix: fix path
* fix: fix
* fix: fix
* docs: fix margin logic
* feat: v5 site change-log page (#38137 )
* feat: v5 site change-log page (#38162 )
* docs: site redirect to home pag
* docs: theme picker
* docs: use react-intl from dumi (#38183 )
* docs: Theme Picker
* docs: update dumi config
* docs: home back fix
* docs: picker colorful
* docs: locale of it
* docs: update components desc
* docs: site of links
* docs: update components list
* docs: update desc
* feat: Migrate `DemoWrapper` component (#38166 )
* feat: Migrate `DemoWrapper` component
* feat: remove invalid comments and add comment for `key` prop
* docs: FloatButton pure panel
* chore: update demo
* chore: update dumi config
* Revert "chore: update demo"
This reverts commit 028265d3ba
.
* chore: test logic adjust to support cnpm modules
* chore: add locale alias
* docs: /index to /
* docs: add locale redirect head script
* chore: adjust compact
* docs: fix missing token
* feat: compact switch
* chore: code clean
* docs: update home
* docs: fix radius token
* docs: hash of it
* chore: adjust home page
* docs: Add background map
* docs: site theme bac logic
* docs: avatar
* docs: update logo color
* docs: home banner
* docs: adjust tour size
* docs: purepanl update
* docs: transfooter
* docs: update banner gif
* docs: content (#38361 )
* docs: title & EditButton
* docs: content
* chore: fix toc
* docs: resource page
* docs: transform resource data from hast
* docs: filename & Resource Card
* chore: enable prerender
* chore: remove less
* docs: toc style
* chore: fix lint
* docs: fix Layout page
* docs: fix CP page
* chore: update demos
* docs: workaround for export dynamic html
* chore: enable demo eslint
* docs: table style
* fix: header shadow
* chore: update snapshot
* fix: toc style
* docs: add title
* docs: Adjust site
* feat: helmet
* docs: site css
* fix: description
* feat: toc debug
* docs: update config-provider
* feat: use colorPanel
* fix: colorPanel value
* feat: anchor ink ball style
* feat: apply theme editor
* fix: code block style
* chore: update demo
* chore: fix lint
* chore: code clean
* chore: update snapshot
* feat: ts2js
* chore: description
* docs: site ready for ssr
includes:
- move client render logic to useEffect in site theme
- extract antd cssinjs to a single css file like bisheng
- workaround to support react@18 pipeableStream for emotion
* chore: bump testing lib
* docs: font size of title
* chore: remove react-sortable-hoc
* chore: update snapshot
* chore: update script
Co-authored-by: PeachScript <scdzwyxst@gmail.com>
Co-authored-by: MadCcc <1075746765@qq.com>
Co-authored-by: zqran <uuxnet@gmail.com>
Co-authored-by: TrickyPi <530257315@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
2 years ago
二货机器人
2fe472d15b
chore: add bail of jest test config
2 years ago
二货爱吃白萝卜
b7634968d7
test: Use SSR for testing demo ( #37890 )
* test: Use SSR for testing demo
* chore: fix lint
* test: align with react 18
2 years ago
renovate[bot]
92d6cea91c
chore(deps): update dependency react-dnd to v16 ( #37840 )
* chore(deps): update dependency react-dnd to v16
* Apply suggestions from code review
* Update .jest.js
* test: fix jest tranformer
* test: fix jest tranformer
* test: fix jest tranformer
* test: fix jest tranformer
* test: fix jest tranformer
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2 years ago
lijianan
c2d7fe4f0d
chore: delete Enzyme ( #37854 )
* chore: delete Enzyme
* fix: fix
2 years ago
黑雨
01ca7c7821
test: convert demo to testing-lib ( #37381 )
* test: replace testing-lib
* test: replace testing-lib
* test: replace testing-lib
* test: update snap
* test: replace testing-lib
* test: replace testing-lib
* test: update for lint
* merge: merge
* test: testing-lib
* test: replace testing-lib
* test: testing-lib
* test: testing-lib
* test: replace testing-lib
* test: replace testing-lib
* test: Replace test aria replacment logic
* test: Update snapshot
* chore: hack for id
* test: clean up
* test: clean demo
* chore: update
* test: snapshot update
* test: fix snapshot rep logic
* test: fix snapshot rep logic
* test: fix snapshot rep logic
* chore: update demo
* test: fix snapshot rep logic
* test: Update snapshot
* test: rest snapshot
* test: update snapshot
* test: Update test case
* test: config env
* chore: clean up
* chore: Use renderServer instead
* test: adjust testing logic
* test: modify test logic
* test: split ssr test
* test: skip if need skip
* chore: ignore test file covv
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2 years ago
afc163
ed4d41676e
chore(deps-dev): upgrade to jest 28 ( #35334 )
https://jestjs.io/zh-Hans/docs/upgrading-to-jest28
3 years ago
afc163
268bdf2faa
chore: Upgrade devDeps ( #32308 )
* chore: node-fetch => isomorphic-fetch
* upgrade array-move
* fix test
3 years ago
afc163
9f0dbf2b4d
chore: upgrade to jest 27 ( #30783 )
* chore: upgrade devDeps
* upgrade @ant-design/tools
* support CSS Minification
* test: jsdom as testEnvironment
* fix setImmediate
* update snapshot
* fix test
* fix test
* fix test
* fix test
4 years ago
afc163
3788e85bbf
test: fix @babel/runtime mjs transform in jest ( #29427 )
4 years ago
骗你是小猫咪
6fba4d1136
test: demo -> ui test ( #24475 )
* test: demo -> ui test
* improve comment image width
* use argos-ci
* use by cicleci
* fix circle run
* rebase master
* try pipeline var
* use another branch var
* fix commit id
* ignore image test file
* remove useless report
* fix test coverage
4 years ago
南小北
1f04f78707
test: fix jest with less import ( #24900 )
5 years ago
骗你是小猫咪
8d0bba4dea
test: 🚀 New Image Snapshots ( #24003 )
* test: New Image Snapshots
* circleci apt-get some lib
* fix command
* set CircleCI NODE_ENV
* new test:image
* upgrade jest-image-snapshot
* needs dist
* use jest html report
* use now deploy
* fix deploy skip
* set token
* upgrade version
* change if
* improve imageTest
* print node version
* revert puppeteer version
* fix now fail
* test
* fix now fail
* add if
* fix if
* add judgement
* fix action
* rebase
* fix test image script
* lint ignore
* fix lint fail
5 years ago
偏右
22c313d032
chore: 🔨 replace css-animation by @ant-design/css-animation ( #23932 )
* 🆙 use @ant-design/css-animation
* fix ci
* fix ci
5 years ago
Eric Wang
7bc3d4f222
chore: Refactor the button test to use typescript ( #22953 )
* Refactor the button test to use typescript
* update tsconfig.json
* Change file name as a workaround
* update antd-tools
5 years ago
Eric Wang
095e21220f
chore: Introduce customer jest match to support matchRenderedSnapshot ( #22947 )
* Introduce customer jest match to support matchRenderedSnapshot
* lint:tsc stop emiting
5 years ago
zombiej
702cb61586
chore: Fix jest filter
5 years ago
afc163
85fcf0fe6e
🐛 fix Icon component ts error with cra definition
close #13205
close #19638
5 years ago
偏右
62d7a2bbb0
✅ restore test coverage ( #20071 )
5 years ago
afc163
60e66dbafe
🐛 fix error antd-tools => @ant-design/tools
5 years ago
诸岳
8798198113
fix(test): Jest with ES Modules of react-dnd ( #17607 )
5 years ago
zombieJ
e0bfcab869
chore: Fix react-dnd CI ( #17130 )
* adjust jest ignore
* add node test
* update es
6 years ago
zombieJ
2164c58198
New Component: Empty ( #13651 )
6 years ago
陈帅
243a5b6097
Migrate jest new configuration
6 years ago
偏右
dfe57a0da3
🌱 upgrade testRegex code style
6 years ago
Heaven
debee2edcb
fix eslint config ( #11701 )
* fix eslint config
* use same pattern
6 years ago
Emerson Laurentino
0f9da43522
Avatar custom size ( #11419 )
* add avatar support custom size
* me added to author list and sorting alphabetically
* fix avatar sizeChildrenStyle preference
* fix authors
* fix snapshots
6 years ago
Wei Zhu
4a906137b8
Add testUrl
https://github.com/jsdom/jsdom/issues/2304
6 years ago
偏右
8226ede38e
Fix test case for new jsdom ( #9527 )
* Fix test case for new jsdom
* use setTimeout as raf in jest jsdom
* Fix cancelAnimationFrame
* Add comment for facebook/jest#5147
* longer timeout
* fix snap
* upgrade antd-tools
7 years ago
Wei Zhu
4a9277277b
Improve coverage
7 years ago
Wei Zhu
eab8b42257
Ignore interface file
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
Wei Zhu
7b1df54523
Config jest transform ignore path
7 years ago
Wei Zhu
145ed77c00
fix: form type ( #7245 )
7 years ago
Benjy Cui
723da5e164
test: fix CI
7 years ago
Benjy Cui
f089d1852d
chore: remove useless deps, and close : #4451
7 years ago
Wei Zhu
7ba016218c
Only run demo tests when using dist files
7 years ago
Wei Zhu
1f69de8da4
Run demo test against dist/lib/es dir
8 years ago