Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update unit test #165

Merged
merged 56 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
da12892
chore: add @testing-library
ziqisia Aug 21, 2023
64e819a
test: update snapshots
ziqisia Aug 21, 2023
8497f9b
test: update mdMock to support `Form` test
ziqisia Aug 21, 2023
65a51eb
test: `Image` test migrate from Enzyme to React Testing Library
ziqisia Aug 21, 2023
76fd116
fix: @testing-library/user-event version
ziqisia Sep 7, 2023
d35fb2b
feat: add test for rate
adaex Sep 19, 2023
fd307b8
feat: add comments
adaex Sep 19, 2023
2b47094
feat: add test for form
ziqisia Sep 19, 2023
a53a285
feat: enzyme to @testing-library/react for demoTest and mountTest
ziqisia Sep 19, 2023
5e029cd
feat: update snapshot
ziqisia Sep 19, 2023
fa911bb
feat: update form test
ziqisia Sep 20, 2023
ee262e1
feat: add test for image-picker
ziqisia Sep 20, 2023
d37804c
feat: 补全slider单测
shuningtang Sep 21, 2023
5daa20b
feat: add test for index-bar
ziqisia Sep 21, 2023
626ea3c
Merge branch 'feat-test-xzq' of https://github.com/arco-design/arco-d…
shuningtang Sep 22, 2023
4aad6e4
feat: update image test
ziqisia Sep 25, 2023
68c2ea7
chore: update package-lock.json
ziqisia Sep 25, 2023
37d66ef
feat: add test for show-monitor
ziqisia Sep 26, 2023
77a00f8
chore: update jest config
ziqisia Sep 26, 2023
895d527
feat: dropdwn-menu
shenhaidada Sep 27, 2023
5eea7e0
test: add image-preview test
TinaPeach Oct 7, 2023
8c2b795
feat: update keyboard unit test
ziqisia Oct 8, 2023
8c44bdd
feat: update button unit test
ziqisia Oct 8, 2023
e14fa97
feat: update nav-bar unit test
ziqisia Oct 8, 2023
20570ee
feat: update swipe-load unit test
ziqisia Oct 8, 2023
13ba7df
feat: update swipe-action unit test
ziqisia Oct 8, 2023
c721151
feat: update tabs unit test
ziqisia Oct 8, 2023
796e44b
test: add Ellipsis test
wonuanyangying Oct 9, 2023
519e439
feat: update load-more unit test
KamenRider41 Oct 12, 2023
ab2a34f
feat: update picker unit test
KamenRider41 Oct 12, 2023
6c2c629
feat: update picker-view unit test
KamenRider41 Oct 12, 2023
8c3eb4c
feat: update input unit test
KamenRider41 Oct 12, 2023
2c9e549
feat: update textarea unit test
KamenRider41 Oct 12, 2023
e635590
feat: update notify unit test
KamenRider41 Oct 12, 2023
b6e700f
feat: update unit test
KamenRider41 Oct 16, 2023
2db7082
feat: update unit test
KamenRider41 Oct 20, 2023
60d4bf9
feat: update notify snapshot
KamenRider41 Oct 23, 2023
1943f1f
feat: update notify snapshot
KamenRider41 Oct 23, 2023
b1aaa75
feat: delete unneeded code
KamenRider41 Oct 23, 2023
929f7dc
Merge pull request #191 from arco-design/feat-test-yysy
ziqisia Oct 24, 2023
a87c47d
feat: update snapshot
ziqisia Oct 24, 2023
876b353
feat: add coverage ci
ziqisia Oct 27, 2023
e7fcecf
Merge branch 'main' into feat-test-xzq
ziqisia Oct 27, 2023
7777b83
feat: demoTest增加useFakeTimers参数
ziqisia Oct 31, 2023
0764e89
feat: update test for masking,dialog,popup,popup-swipe
ziqisia Oct 31, 2023
d47e2e6
feat: update snapshots
ziqisia Nov 2, 2023
d8a3496
Merge remote-tracking branch 'origin/main' into feat-test-xzq
ziqisia Nov 22, 2023
d6099ff
Merge branch 'main' into feat-test-xzq
ziqisia Nov 30, 2023
8b1751e
feat: update snapshot
ziqisia Nov 30, 2023
b7af1b8
fix: mock container
ziqisia Dec 9, 2023
c66d50b
Merge branch 'main' into feat-test-xzq
ziqisia Dec 9, 2023
a8d7a18
feat: update snapshots
ziqisia Dec 9, 2023
7abd7f2
chore: merge main
TinaPeach Dec 25, 2023
8ad4c45
chore: merge main
TinaPeach Dec 25, 2023
7f1f878
fix: @types/enzyme version
TinaPeach Dec 26, 2023
03a84c3
fix: test case fix
TinaPeach Dec 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17,209 changes: 5,485 additions & 11,724 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.3",
"@rollup/plugin-typescript": "^5.0.2",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^12.0.0",
"@types/enzyme": "^3.10.11",
"@types/estree": "^1.0.0",
"@types/jest": "^26.0.24",
"@types/lodash.debounce": "^4.0.6",
"@types/lodash.throttle": "^4.1.6",
"@types/marked": "^4.0.3",
Expand All @@ -65,7 +70,7 @@
"@typescript-eslint/parser": "^5.9.1",
"@vitejs/plugin-react-refresh": "^1.3.6",
"autoprefixer": "^10.4.12",
"babel-jest": "^25.3.0",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.5",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
Expand All @@ -92,7 +97,7 @@
"html-loader": "^4.2.0",
"html-webpack-plugin": "^5.5.0",
"husky": "^4.2.3",
"jest": "^25.3.0",
"jest": "^26.6.3",
"lerna": "^4.0.0",
"less": "^3.13.1",
"less-loader": "^11.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,187 +1,189 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`action-sheet demo test action-sheet demo: index.md renders correctly 1`] = `
<div
class="arco-cell-group all-border-box"
>
<DocumentFragment>
<div
class="cell-group-body"
class="arco-cell-group all-border-box"
>
<div
class="arco-cell all-border-box bordered"
class="cell-group-body"
>
<div
class="arco-cell-inner"
class="arco-cell all-border-box bordered"
>
<div
class="cell-label"
class="arco-cell-inner"
>
<div
class="cell-title"
class="cell-label"
>
No Title
<div
class="cell-title"
>
No Title
</div>
</div>
</div>
<div
class="cell-content has-label"
/>
<div
class="cell-arrow-icon"
>
<svg
class="arrow-icon-svg"
fill="none"
viewBox="0 0 8 14"
<div
class="cell-content has-label"
/>
<div
class="cell-arrow-icon"
>
<path
clip-rule="evenodd"
d="M0.594858 1.24219C0.399596 1.43745 0.399596 1.75403 0.594859 1.94929L5.59905 6.95348L0.636039 11.9165C0.440776 12.1118 0.440776 12.4283 0.636038 12.6236L0.989592 12.9771C1.18485 13.1724 1.50144 13.1724 1.6967 12.9771L7.35355 7.3203C7.5296 7.14425 7.54692 6.86959 7.40553 6.67413C7.38216 6.62774 7.35111 6.58423 7.31237 6.54549L1.65552 0.888634C1.46026 0.693372 1.14367 0.693372 0.948411 0.888634L0.594858 1.24219Z"
fill-rule="evenodd"
/>
</svg>
<svg
class="arrow-icon-svg"
fill="none"
viewBox="0 0 8 14"
>
<path
clip-rule="evenodd"
d="M0.594858 1.24219C0.399596 1.43745 0.399596 1.75403 0.594859 1.94929L5.59905 6.95348L0.636039 11.9165C0.440776 12.1118 0.440776 12.4283 0.636038 12.6236L0.989592 12.9771C1.18485 13.1724 1.50144 13.1724 1.6967 12.9771L7.35355 7.3203C7.5296 7.14425 7.54692 6.86959 7.40553 6.67413C7.38216 6.62774 7.35111 6.58423 7.31237 6.54549L1.65552 0.888634C1.46026 0.693372 1.14367 0.693372 0.948411 0.888634L0.594858 1.24219Z"
fill-rule="evenodd"
/>
</svg>
</div>
</div>
</div>
</div>
<div
class="arco-cell all-border-box bordered"
>
<div
class="arco-cell-inner"
class="arco-cell all-border-box bordered"
>
<div
class="cell-label"
class="arco-cell-inner"
>
<div
class="cell-title"
class="cell-label"
>
Cancel/Delete Button
<div
class="cell-title"
>
Cancel/Delete Button
</div>
</div>
</div>
<div
class="cell-content has-label"
/>
<div
class="cell-arrow-icon"
>
<svg
class="arrow-icon-svg"
fill="none"
viewBox="0 0 8 14"
<div
class="cell-content has-label"
/>
<div
class="cell-arrow-icon"
>
<path
clip-rule="evenodd"
d="M0.594858 1.24219C0.399596 1.43745 0.399596 1.75403 0.594859 1.94929L5.59905 6.95348L0.636039 11.9165C0.440776 12.1118 0.440776 12.4283 0.636038 12.6236L0.989592 12.9771C1.18485 13.1724 1.50144 13.1724 1.6967 12.9771L7.35355 7.3203C7.5296 7.14425 7.54692 6.86959 7.40553 6.67413C7.38216 6.62774 7.35111 6.58423 7.31237 6.54549L1.65552 0.888634C1.46026 0.693372 1.14367 0.693372 0.948411 0.888634L0.594858 1.24219Z"
fill-rule="evenodd"
/>
</svg>
<svg
class="arrow-icon-svg"
fill="none"
viewBox="0 0 8 14"
>
<path
clip-rule="evenodd"
d="M0.594858 1.24219C0.399596 1.43745 0.399596 1.75403 0.594859 1.94929L5.59905 6.95348L0.636039 11.9165C0.440776 12.1118 0.440776 12.4283 0.636038 12.6236L0.989592 12.9771C1.18485 13.1724 1.50144 13.1724 1.6967 12.9771L7.35355 7.3203C7.5296 7.14425 7.54692 6.86959 7.40553 6.67413C7.38216 6.62774 7.35111 6.58423 7.31237 6.54549L1.65552 0.888634C1.46026 0.693372 1.14367 0.693372 0.948411 0.888634L0.594858 1.24219Z"
fill-rule="evenodd"
/>
</svg>
</div>
</div>
</div>
</div>
<div
class="arco-cell all-border-box bordered"
>
<div
class="arco-cell-inner"
class="arco-cell all-border-box bordered"
>
<div
class="cell-label"
class="arco-cell-inner"
>
<div
class="cell-title"
class="cell-label"
>
Select Status
<div
class="cell-title"
>
Select Status
</div>
</div>
</div>
<div
class="cell-content has-label"
/>
<div
class="cell-arrow-icon"
>
<svg
class="arrow-icon-svg"
fill="none"
viewBox="0 0 8 14"
<div
class="cell-content has-label"
/>
<div
class="cell-arrow-icon"
>
<path
clip-rule="evenodd"
d="M0.594858 1.24219C0.399596 1.43745 0.399596 1.75403 0.594859 1.94929L5.59905 6.95348L0.636039 11.9165C0.440776 12.1118 0.440776 12.4283 0.636038 12.6236L0.989592 12.9771C1.18485 13.1724 1.50144 13.1724 1.6967 12.9771L7.35355 7.3203C7.5296 7.14425 7.54692 6.86959 7.40553 6.67413C7.38216 6.62774 7.35111 6.58423 7.31237 6.54549L1.65552 0.888634C1.46026 0.693372 1.14367 0.693372 0.948411 0.888634L0.594858 1.24219Z"
fill-rule="evenodd"
/>
</svg>
<svg
class="arrow-icon-svg"
fill="none"
viewBox="0 0 8 14"
>
<path
clip-rule="evenodd"
d="M0.594858 1.24219C0.399596 1.43745 0.399596 1.75403 0.594859 1.94929L5.59905 6.95348L0.636039 11.9165C0.440776 12.1118 0.440776 12.4283 0.636038 12.6236L0.989592 12.9771C1.18485 13.1724 1.50144 13.1724 1.6967 12.9771L7.35355 7.3203C7.5296 7.14425 7.54692 6.86959 7.40553 6.67413C7.38216 6.62774 7.35111 6.58423 7.31237 6.54549L1.65552 0.888634C1.46026 0.693372 1.14367 0.693372 0.948411 0.888634L0.594858 1.24219Z"
fill-rule="evenodd"
/>
</svg>
</div>
</div>
</div>
</div>
<div
class="arco-cell all-border-box bordered"
>
<div
class="arco-cell-inner"
class="arco-cell all-border-box bordered"
>
<div
class="cell-label"
class="arco-cell-inner"
>
<div
class="cell-title"
class="cell-label"
>
Description
<div
class="cell-title"
>
Description
</div>
</div>
</div>
<div
class="cell-content has-label"
/>
<div
class="cell-arrow-icon"
>
<svg
class="arrow-icon-svg"
fill="none"
viewBox="0 0 8 14"
<div
class="cell-content has-label"
/>
<div
class="cell-arrow-icon"
>
<path
clip-rule="evenodd"
d="M0.594858 1.24219C0.399596 1.43745 0.399596 1.75403 0.594859 1.94929L5.59905 6.95348L0.636039 11.9165C0.440776 12.1118 0.440776 12.4283 0.636038 12.6236L0.989592 12.9771C1.18485 13.1724 1.50144 13.1724 1.6967 12.9771L7.35355 7.3203C7.5296 7.14425 7.54692 6.86959 7.40553 6.67413C7.38216 6.62774 7.35111 6.58423 7.31237 6.54549L1.65552 0.888634C1.46026 0.693372 1.14367 0.693372 0.948411 0.888634L0.594858 1.24219Z"
fill-rule="evenodd"
/>
</svg>
<svg
class="arrow-icon-svg"
fill="none"
viewBox="0 0 8 14"
>
<path
clip-rule="evenodd"
d="M0.594858 1.24219C0.399596 1.43745 0.399596 1.75403 0.594859 1.94929L5.59905 6.95348L0.636039 11.9165C0.440776 12.1118 0.440776 12.4283 0.636038 12.6236L0.989592 12.9771C1.18485 13.1724 1.50144 13.1724 1.6967 12.9771L7.35355 7.3203C7.5296 7.14425 7.54692 6.86959 7.40553 6.67413C7.38216 6.62774 7.35111 6.58423 7.31237 6.54549L1.65552 0.888634C1.46026 0.693372 1.14367 0.693372 0.948411 0.888634L0.594858 1.24219Z"
fill-rule="evenodd"
/>
</svg>
</div>
</div>
</div>
</div>
<div
class="arco-cell all-border-box bordered"
>
<div
class="arco-cell-inner"
class="arco-cell all-border-box bordered"
>
<div
class="cell-label"
class="arco-cell-inner"
>
<div
class="cell-title"
class="cell-label"
>
Badge Number
<div
class="cell-title"
>
Badge Number
</div>
</div>
</div>
<div
class="cell-content has-label"
/>
<div
class="cell-arrow-icon"
>
<svg
class="arrow-icon-svg"
fill="none"
viewBox="0 0 8 14"
<div
class="cell-content has-label"
/>
<div
class="cell-arrow-icon"
>
<path
clip-rule="evenodd"
d="M0.594858 1.24219C0.399596 1.43745 0.399596 1.75403 0.594859 1.94929L5.59905 6.95348L0.636039 11.9165C0.440776 12.1118 0.440776 12.4283 0.636038 12.6236L0.989592 12.9771C1.18485 13.1724 1.50144 13.1724 1.6967 12.9771L7.35355 7.3203C7.5296 7.14425 7.54692 6.86959 7.40553 6.67413C7.38216 6.62774 7.35111 6.58423 7.31237 6.54549L1.65552 0.888634C1.46026 0.693372 1.14367 0.693372 0.948411 0.888634L0.594858 1.24219Z"
fill-rule="evenodd"
/>
</svg>
<svg
class="arrow-icon-svg"
fill="none"
viewBox="0 0 8 14"
>
<path
clip-rule="evenodd"
d="M0.594858 1.24219C0.399596 1.43745 0.399596 1.75403 0.594859 1.94929L5.59905 6.95348L0.636039 11.9165C0.440776 12.1118 0.440776 12.4283 0.636038 12.6236L0.989592 12.9771C1.18485 13.1724 1.50144 13.1724 1.6967 12.9771L7.35355 7.3203C7.5296 7.14425 7.54692 6.86959 7.40553 6.67413C7.38216 6.62774 7.35111 6.58423 7.31237 6.54549L1.65552 0.888634C1.46026 0.693372 1.14367 0.693372 0.948411 0.888634L0.594858 1.24219Z"
fill-rule="evenodd"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</DocumentFragment>
`;
Loading