Skip to content

Commit 8bd0331

Browse files
committed
[workflow/test] remove unused test cases
1 parent 05f2687 commit 8bd0331

5 files changed

Lines changed: 95 additions & 127 deletions

File tree

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
root: true,
3-
extends: '@react-native',
3+
extends: ['@react-native', 'plugin:testing-library/react'],
44
};

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"cSpell.words": ["Cocoapods"]
2+
"cSpell.words": ["Cocoapods"],
3+
"sonarlint.connectedMode.project": {
4+
"connectionId": "material-elements",
5+
"projectKey": "material-elements_react-native-material-elements"
6+
}
37
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,19 @@
2828
"@react-native/metro-config": "0.76.3",
2929
"@react-native/typescript-config": "0.76.3",
3030
"@testing-library/react-hooks": "^8.0.1",
31+
"@testing-library/react-native": "^12.9.0",
3132
"@types/jest": "^29.5.14",
3233
"@types/lodash": "^4.17.13",
3334
"@types/react": "^18.2.6",
3435
"@types/react-native-vector-icons": "^6.4.18",
3536
"@types/react-test-renderer": "^18.0.0",
3637
"babel-jest": "^29.6.3",
3738
"eslint": "^8.19.0",
39+
"eslint-plugin-testing-library": "^7.8.0",
3840
"jest": "^29.6.3",
3941
"prettier": "2.8.8",
4042
"react-test-renderer": "18.2.0",
41-
"typescript": "5.0.4",
42-
"@testing-library/react-native": "^12.9.0"
43+
"typescript": "5.0.4"
4344
},
4445
"engines": {
4546
"node": ">=18"

src/packages/react-native-material-elements/__test__/TextInputFormValidation01.test.tsx

Lines changed: 0 additions & 76 deletions
This file was deleted.

yarn.lock

Lines changed: 86 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,13 @@
10761076
dependencies:
10771077
eslint-visitor-keys "^3.4.3"
10781078

1079+
"@eslint-community/eslint-utils@^4.7.0":
1080+
version "4.9.0"
1081+
resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz#7308df158e064f0dd8b8fdb58aa14fa2a7f913b3"
1082+
integrity sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==
1083+
dependencies:
1084+
eslint-visitor-keys "^3.4.3"
1085+
10791086
"@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.6.1":
10801087
version "4.12.1"
10811088
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.12.1.tgz#cfc6cffe39df390a3841cde2abccf92eaa7ae0e0"
@@ -1113,13 +1120,6 @@
11131120
dependencies:
11141121
"@hapi/hoek" "^9.0.0"
11151122

1116-
"@hookform/resolvers@^5.1.1":
1117-
version "5.1.1"
1118-
resolved "https://registry.yarnpkg.com/@hookform/resolvers/-/resolvers-5.1.1.tgz#91074ba4fb749cc74e6465e75d38256146b0c4ab"
1119-
integrity sha512-J/NVING3LMAEvexJkyTLjruSm7aOFx7QX21pzkiJfMoNG0wl5aFEjLTl7ay7IQb9EWY6AkrBy7tHL2Alijpdcg==
1120-
dependencies:
1121-
"@standard-schema/utils" "^0.3.0"
1122-
11231123
"@humanwhocodes/config-array@^0.13.0":
11241124
version "0.13.0"
11251125
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.13.0.tgz#fb907624df3256d04b9aa2df50d7aa97ec648748"
@@ -1814,11 +1814,6 @@
18141814
dependencies:
18151815
"@sinonjs/commons" "^3.0.0"
18161816

1817-
"@standard-schema/utils@^0.3.0":
1818-
version "0.3.0"
1819-
resolved "https://registry.yarnpkg.com/@standard-schema/utils/-/utils-0.3.0.tgz#3d5e608f16c2390c10528e98e59aef6bf73cae7b"
1820-
integrity sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==
1821-
18221817
"@testing-library/react-hooks@^8.0.1":
18231818
version "8.0.1"
18241819
resolved "https://registry.yarnpkg.com/@testing-library/react-hooks/-/react-hooks-8.0.1.tgz#0924bbd5b55e0c0c0502d1754657ada66947ca12"
@@ -2024,6 +2019,15 @@
20242019
"@typescript-eslint/visitor-keys" "7.18.0"
20252020
debug "^4.3.4"
20262021

2022+
"@typescript-eslint/project-service@8.44.0":
2023+
version "8.44.0"
2024+
resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.44.0.tgz#89060651dcecde946e758441fe94dceb6f769a29"
2025+
integrity sha512-ZeaGNraRsq10GuEohKTo4295Z/SuGcSq2LzfGlqiuEvfArzo/VRrT0ZaJsVPuKZ55lVbNk8U6FcL+ZMH8CoyVA==
2026+
dependencies:
2027+
"@typescript-eslint/tsconfig-utils" "^8.44.0"
2028+
"@typescript-eslint/types" "^8.44.0"
2029+
debug "^4.3.4"
2030+
20272031
"@typescript-eslint/scope-manager@5.62.0":
20282032
version "5.62.0"
20292033
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz#d9457ccc6a0b8d6b37d0eb252a23022478c5460c"
@@ -2040,6 +2044,19 @@
20402044
"@typescript-eslint/types" "7.18.0"
20412045
"@typescript-eslint/visitor-keys" "7.18.0"
20422046

2047+
"@typescript-eslint/scope-manager@8.44.0", "@typescript-eslint/scope-manager@^8.15.0":
2048+
version "8.44.0"
2049+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.44.0.tgz#c37f1e786fd0e5b40607985c769a61c24c761c26"
2050+
integrity sha512-87Jv3E+al8wpD+rIdVJm/ItDBe/Im09zXIjFoipOjr5gHUhJmTzfFLuTJ/nPTMc2Srsroy4IBXwcTCHyRR7KzA==
2051+
dependencies:
2052+
"@typescript-eslint/types" "8.44.0"
2053+
"@typescript-eslint/visitor-keys" "8.44.0"
2054+
2055+
"@typescript-eslint/tsconfig-utils@8.44.0", "@typescript-eslint/tsconfig-utils@^8.44.0":
2056+
version "8.44.0"
2057+
resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.44.0.tgz#8c0601372bf889f0663a08df001ad666442aa3a8"
2058+
integrity sha512-x5Y0+AuEPqAInc6yd0n5DAcvtoQ/vyaGwuX5HE9n6qAefk1GaedqrLQF8kQGylLUb9pnZyLf+iEiL9fr8APDtQ==
2059+
20432060
"@typescript-eslint/type-utils@7.18.0":
20442061
version "7.18.0"
20452062
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz#2165ffaee00b1fbbdd2d40aa85232dab6998f53b"
@@ -2060,6 +2077,11 @@
20602077
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.18.0.tgz#b90a57ccdea71797ffffa0321e744f379ec838c9"
20612078
integrity sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==
20622079

2080+
"@typescript-eslint/types@8.44.0", "@typescript-eslint/types@^8.44.0":
2081+
version "8.44.0"
2082+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.44.0.tgz#4b9154ab164a0beff22d3217ff0fdc8d10bce924"
2083+
integrity sha512-ZSl2efn44VsYM0MfDQe68RKzBz75NPgLQXuGypmym6QVOWL5kegTZuZ02xRAT9T+onqvM6T8CdQk0OwYMB6ZvA==
2084+
20632085
"@typescript-eslint/typescript-estree@5.62.0":
20642086
version "5.62.0"
20652087
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz#7d17794b77fabcac615d6a48fb143330d962eb9b"
@@ -2087,6 +2109,22 @@
20872109
semver "^7.6.0"
20882110
ts-api-utils "^1.3.0"
20892111

2112+
"@typescript-eslint/typescript-estree@8.44.0":
2113+
version "8.44.0"
2114+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.44.0.tgz#e23e9946c466cf5f53b7e46ecdd9789fd8192daa"
2115+
integrity sha512-lqNj6SgnGcQZwL4/SBJ3xdPEfcBuhCG8zdcwCPgYcmiPLgokiNDKlbPzCwEwu7m279J/lBYWtDYL+87OEfn8Jw==
2116+
dependencies:
2117+
"@typescript-eslint/project-service" "8.44.0"
2118+
"@typescript-eslint/tsconfig-utils" "8.44.0"
2119+
"@typescript-eslint/types" "8.44.0"
2120+
"@typescript-eslint/visitor-keys" "8.44.0"
2121+
debug "^4.3.4"
2122+
fast-glob "^3.3.2"
2123+
is-glob "^4.0.3"
2124+
minimatch "^9.0.4"
2125+
semver "^7.6.0"
2126+
ts-api-utils "^2.1.0"
2127+
20902128
"@typescript-eslint/utils@7.18.0":
20912129
version "7.18.0"
20922130
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.18.0.tgz#bca01cde77f95fc6a8d5b0dbcbfb3d6ca4be451f"
@@ -2111,6 +2149,16 @@
21112149
eslint-scope "^5.1.1"
21122150
semver "^7.3.7"
21132151

2152+
"@typescript-eslint/utils@^8.15.0":
2153+
version "8.44.0"
2154+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.44.0.tgz#2c0650a1e8a832ed15658e7ca3c7bd2818d92c7c"
2155+
integrity sha512-nktOlVcg3ALo0mYlV+L7sWUD58KG4CMj1rb2HUVOO4aL3K/6wcD+NERqd0rrA5Vg06b42YhF6cFxeixsp9Riqg==
2156+
dependencies:
2157+
"@eslint-community/eslint-utils" "^4.7.0"
2158+
"@typescript-eslint/scope-manager" "8.44.0"
2159+
"@typescript-eslint/types" "8.44.0"
2160+
"@typescript-eslint/typescript-estree" "8.44.0"
2161+
21142162
"@typescript-eslint/visitor-keys@5.62.0":
21152163
version "5.62.0"
21162164
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz#2174011917ce582875954ffe2f6912d5931e353e"
@@ -2127,6 +2175,14 @@
21272175
"@typescript-eslint/types" "7.18.0"
21282176
eslint-visitor-keys "^3.4.3"
21292177

2178+
"@typescript-eslint/visitor-keys@8.44.0":
2179+
version "8.44.0"
2180+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.44.0.tgz#0d9d5647e005c2ff8acc391d1208ab37d08850aa"
2181+
integrity sha512-zaz9u8EJ4GBmnehlrpoKvj/E3dNbuQ7q0ucyZImm3cLqJ8INTc970B1qEqDX/Rzq65r3TvVTN7kHWPBoyW7DWw==
2182+
dependencies:
2183+
"@typescript-eslint/types" "8.44.0"
2184+
eslint-visitor-keys "^4.2.1"
2185+
21302186
"@ungap/structured-clone@^1.2.0":
21312187
version "1.3.0"
21322188
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz#d06bbb384ebcf6c505fde1c3d0ed4ddffe0aaff8"
@@ -3291,6 +3347,14 @@ eslint-plugin-react@^7.30.1:
32913347
string.prototype.matchall "^4.0.12"
32923348
string.prototype.repeat "^1.0.0"
32933349

3350+
eslint-plugin-testing-library@^7.8.0:
3351+
version "7.8.0"
3352+
resolved "https://registry.yarnpkg.com/eslint-plugin-testing-library/-/eslint-plugin-testing-library-7.8.0.tgz#f18b95ad9710c32a7630c48fdfcba826e7c5d06a"
3353+
integrity sha512-zmu9xtpULN5KCtJBABBmXK3jfKZej2ZJ6QzCX4MtywP3UTJ7yn/Zful8Kn5mUiOCxX6KBt0to3OZf7Usuhtvfg==
3354+
dependencies:
3355+
"@typescript-eslint/scope-manager" "^8.15.0"
3356+
"@typescript-eslint/utils" "^8.15.0"
3357+
32943358
eslint-scope@5.1.1, eslint-scope@^5.1.1:
32953359
version "5.1.1"
32963360
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
@@ -3317,6 +3381,11 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4
33173381
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800"
33183382
integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==
33193383

3384+
eslint-visitor-keys@^4.2.1:
3385+
version "4.2.1"
3386+
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz#4cfea60fe7dd0ad8e816e1ed026c1d5251b512c1"
3387+
integrity sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==
3388+
33203389
eslint@^8.19.0:
33213390
version "8.57.1"
33223391
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.57.1.tgz#7df109654aba7e3bbe5c8eae533c5e461d3c6ca9"
@@ -5600,11 +5669,6 @@ prop-types@^15.7.2, prop-types@^15.8.1:
56005669
object-assign "^4.1.1"
56015670
react-is "^16.13.1"
56025671

5603-
property-expr@^2.0.5:
5604-
version "2.0.6"
5605-
resolved "https://registry.yarnpkg.com/property-expr/-/property-expr-2.0.6.tgz#f77bc00d5928a6c748414ad12882e83f24aec1e8"
5606-
integrity sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==
5607-
56085672
punycode@^2.1.0:
56095673
version "2.3.1"
56105674
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
@@ -5647,11 +5711,6 @@ react-error-boundary@^3.1.0:
56475711
dependencies:
56485712
"@babel/runtime" "^7.12.5"
56495713

5650-
react-hook-form@^7.58.0:
5651-
version "7.58.0"
5652-
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.58.0.tgz#4d23308b587d637effe4e581f410e1ca8c434bef"
5653-
integrity sha512-zGijmEed35oNfOfy7ub99jfjkiLhHwA3dl5AgyKdWC6QQzhnc7tkWewSa+T+A2EpLrc6wo5DUoZctS9kufWJjA==
5654-
56555714
"react-is@^16.12.0 || ^17.0.0 || ^18.0.0", react-is@^18.0.0, react-is@^18.2.0:
56565715
version "18.3.1"
56575716
resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e"
@@ -6430,11 +6489,6 @@ throat@^5.0.0:
64306489
resolved "https://registry.yarnpkg.com/throat/-/throat-5.0.0.tgz#c5199235803aad18754a667d659b5e72ce16764b"
64316490
integrity sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==
64326491

6433-
tiny-case@^1.0.3:
6434-
version "1.0.3"
6435-
resolved "https://registry.yarnpkg.com/tiny-case/-/tiny-case-1.0.3.tgz#d980d66bc72b5d5a9ca86fb7c9ffdb9c898ddd03"
6436-
integrity sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q==
6437-
64386492
tmpl@1.0.5:
64396493
version "1.0.5"
64406494
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc"
@@ -6452,11 +6506,6 @@ toidentifier@1.0.1:
64526506
resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35"
64536507
integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==
64546508

6455-
toposort@^2.0.2:
6456-
version "2.0.2"
6457-
resolved "https://registry.yarnpkg.com/toposort/-/toposort-2.0.2.tgz#ae21768175d1559d48bef35420b2f4962f09c330"
6458-
integrity sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==
6459-
64606509
tr46@~0.0.3:
64616510
version "0.0.3"
64626511
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
@@ -6467,6 +6516,11 @@ ts-api-utils@^1.3.0:
64676516
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.4.3.tgz#bfc2215fe6528fecab2b0fba570a2e8a4263b064"
64686517
integrity sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==
64696518

6519+
ts-api-utils@^2.1.0:
6520+
version "2.1.0"
6521+
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-2.1.0.tgz#595f7094e46eed364c13fd23e75f9513d29baf91"
6522+
integrity sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==
6523+
64706524
tslib@^1.8.1:
64716525
version "1.14.1"
64726526
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
@@ -6511,11 +6565,6 @@ type-fest@^0.7.1:
65116565
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.7.1.tgz#8dda65feaf03ed78f0a3f9678f1869147f7c5c48"
65126566
integrity sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==
65136567

6514-
type-fest@^2.19.0:
6515-
version "2.19.0"
6516-
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.19.0.tgz#88068015bb33036a598b952e55e9311a60fd3a9b"
6517-
integrity sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==
6518-
65196568
typed-array-buffer@^1.0.3:
65206569
version "1.0.3"
65216570
resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz#a72395450a4869ec033fd549371b47af3a2ee536"
@@ -6902,13 +6951,3 @@ yocto-queue@^0.1.0:
69026951
version "0.1.0"
69036952
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
69046953
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
6905-
6906-
yup@^1.6.1:
6907-
version "1.6.1"
6908-
resolved "https://registry.yarnpkg.com/yup/-/yup-1.6.1.tgz#8defcff9daaf9feac178029c0e13b616563ada4b"
6909-
integrity sha512-JED8pB50qbA4FOkDol0bYF/p60qSEDQqBD0/qeIrUCG1KbPBIQ776fCUNb9ldbPcSTxA69g/47XTo4TqWiuXOA==
6910-
dependencies:
6911-
property-expr "^2.0.5"
6912-
tiny-case "^1.0.3"
6913-
toposort "^2.0.2"
6914-
type-fest "^2.19.0"

0 commit comments

Comments
 (0)