apextestlist 1.12.2 → 1.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/lib/commands/apextests/list.d.ts +2 -5
  3. package/lib/commands/apextests/list.js +10 -64
  4. package/lib/commands/apextests/list.js.map +1 -1
  5. package/lib/core/listTests.d.ts +2 -0
  6. package/lib/core/listTests.js +54 -0
  7. package/lib/core/listTests.js.map +1 -0
  8. package/lib/parsers/manifestParser.d.ts +10 -0
  9. package/lib/parsers/manifestParser.js +27 -0
  10. package/lib/parsers/manifestParser.js.map +1 -0
  11. package/lib/parsers/testNameParser.d.ts +7 -0
  12. package/lib/parsers/testNameParser.js +19 -0
  13. package/lib/parsers/testNameParser.js.map +1 -0
  14. package/lib/parsers/testSuiteParser.d.ts +15 -0
  15. package/lib/parsers/testSuiteParser.js +40 -0
  16. package/lib/parsers/testSuiteParser.js.map +1 -0
  17. package/lib/readers/directorySearcher.d.ts +10 -0
  18. package/lib/readers/directorySearcher.js +82 -0
  19. package/lib/readers/directorySearcher.js.map +1 -0
  20. package/lib/readers/testSuiteSearcher.d.ts +9 -0
  21. package/lib/readers/testSuiteSearcher.js +74 -0
  22. package/lib/readers/testSuiteSearcher.js.map +1 -0
  23. package/lib/utils/concurrencyThreshold.d.ts +1 -0
  24. package/lib/utils/concurrencyThreshold.js +7 -0
  25. package/lib/utils/concurrencyThreshold.js.map +1 -0
  26. package/lib/utils/constants.d.ts +5 -0
  27. package/lib/utils/constants.js +7 -0
  28. package/lib/utils/constants.js.map +1 -0
  29. package/lib/{helpers → utils}/formatters.d.ts +1 -1
  30. package/lib/utils/formatters.js.map +1 -0
  31. package/lib/utils/getPackageDirectories.js.map +1 -0
  32. package/lib/{helpers → utils}/getRepoRoot.js +1 -1
  33. package/lib/utils/getRepoRoot.js.map +1 -0
  34. package/lib/utils/matchWildcard.d.ts +1 -0
  35. package/lib/utils/matchWildcard.js +5 -0
  36. package/lib/utils/matchWildcard.js.map +1 -0
  37. package/lib/utils/types.d.ts +22 -0
  38. package/lib/{helpers → utils}/types.js.map +1 -1
  39. package/lib/utils/validateTests.js.map +1 -0
  40. package/oclif.lock +90 -71
  41. package/oclif.manifest.json +2 -1
  42. package/package.json +2 -2
  43. package/lib/helpers/constants.d.ts +0 -2
  44. package/lib/helpers/constants.js +0 -4
  45. package/lib/helpers/constants.js.map +0 -1
  46. package/lib/helpers/formatters.js.map +0 -1
  47. package/lib/helpers/getPackageDirectories.js.map +0 -1
  48. package/lib/helpers/getRepoRoot.js.map +0 -1
  49. package/lib/helpers/parsers.d.ts +0 -32
  50. package/lib/helpers/parsers.js +0 -87
  51. package/lib/helpers/parsers.js.map +0 -1
  52. package/lib/helpers/readers.d.ts +0 -21
  53. package/lib/helpers/readers.js +0 -158
  54. package/lib/helpers/readers.js.map +0 -1
  55. package/lib/helpers/types.d.ts +0 -10
  56. package/lib/helpers/validateTests.js.map +0 -1
  57. /package/lib/{helpers → utils}/formatters.js +0 -0
  58. /package/lib/{helpers → utils}/getPackageDirectories.d.ts +0 -0
  59. /package/lib/{helpers → utils}/getPackageDirectories.js +0 -0
  60. /package/lib/{helpers → utils}/getRepoRoot.d.ts +0 -0
  61. /package/lib/{helpers → utils}/types.js +0 -0
  62. /package/lib/{helpers → utils}/validateTests.d.ts +0 -0
  63. /package/lib/{helpers → utils}/validateTests.js +0 -0
@@ -0,0 +1,5 @@
1
+ export function matchWildcard(wildcard, test) {
2
+ const regex = new RegExp(`^${wildcard.replace('*', '.*')}$`);
3
+ return regex.test(test);
4
+ }
5
+ //# sourceMappingURL=matchWildcard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchWildcard.js","sourceRoot":"","sources":["../../src/utils/matchWildcard.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAAC,QAAgB,EAAE,IAAY;IAC1D,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7D,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,22 @@
1
+ export type SfdxProject = {
2
+ packageDirectories: Array<{
3
+ path: string;
4
+ }>;
5
+ };
6
+ export type SearchResult = {
7
+ classes: string[];
8
+ testSuites: string[];
9
+ warnings: string[];
10
+ };
11
+ export type ApextestsListResult = {
12
+ tests: string[];
13
+ command: string;
14
+ };
15
+ export type ListTestsOptions = {
16
+ format?: string;
17
+ manifest?: string;
18
+ ignoreMissingTests?: boolean;
19
+ ignoreDirs?: string[];
20
+ noWarnings?: boolean;
21
+ warn?: (msg: string) => void;
22
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/helpers/types.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateTests.js","sourceRoot":"","sources":["../../src/utils/validateTests.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,gBAA0B,EAC1B,kBAA4B;IAE5B,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,cAAc,GAAa,EAAE,CAAC;IAEpC,8CAA8C;IAC9C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,gBAAgB,CAAC,GAAG,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE;QAC7C,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,GAAG,eAAe,MAAM,EAAE,kBAAkB,C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CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC/C,CAAC;aAAM,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CACH,CAAC;IAEF,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC;AACxD,CAAC"}
package/oclif.lock CHANGED
@@ -770,10 +770,11 @@
770
770
  conventional-changelog-conventionalcommits "^6.1.0"
771
771
 
772
772
  "@commitlint/config-conventional@^19.6.0":
773
- version "19.8.0"
774
- resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-19.8.0.tgz#4a1470a0156f5d1f560426c05cfc3a6a796c2b9c"
773
+ version "19.8.1"
774
+ resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-19.8.1.tgz#eab42df58cda44f18410ae0cbd6785ece00f214b"
775
+ integrity sha512-/AZHJL6F6B/G959CsMAzrPKKZjeEiAVifRyEwXxcT6qtqbPwGw+iQxmNS+Bu+i09OCtdNRW6pNpBvgPrtMr9EQ==
775
776
  dependencies:
776
- "@commitlint/types" "^19.8.0"
777
+ "@commitlint/types" "^19.8.1"
777
778
  conventional-changelog-conventionalcommits "^7.0.2"
778
779
 
779
780
  "@commitlint/config-validator@^17.8.1":
@@ -1025,7 +1026,7 @@
1025
1026
  dependencies:
1026
1027
  chalk "^4.1.0"
1027
1028
 
1028
- "@commitlint/types@^19.8.0", "@commitlint/types@^19.8.1":
1029
+ "@commitlint/types@^19.8.1":
1029
1030
  version "19.8.1"
1030
1031
  resolved "https://registry.yarnpkg.com/@commitlint/types/-/types-19.8.1.tgz#7971fbd56b0cfb31692a4e1941b74ac8217c44e5"
1031
1032
  integrity sha512-/yCrWGCoA1SVKOks25EGadP9Pnj0oAIHGpl2wH2M2Y46dPM2ueb8wyCVOD7O3WCTkaJ0IkKvzhl1JY7+uCT2Dw==
@@ -1333,10 +1334,10 @@
1333
1334
  "@jridgewell/resolve-uri" "^3.1.0"
1334
1335
  "@jridgewell/sourcemap-codec" "^1.4.14"
1335
1336
 
1336
- "@jsforce/jsforce-node@^3.8.1":
1337
- version "3.8.1"
1338
- resolved "https://registry.yarnpkg.com/@jsforce/jsforce-node/-/jsforce-node-3.8.1.tgz#482fcf2820b48a6b10930d33550eb4e4cbd1e480"
1339
- integrity sha512-+IZZC7VfNjhkTyeAspBc4Z35Y5eAP0RIWQnyfKahsbY/aLjiFRIM9ejl1YbWbrbabf5ODFSUgBGmOiEYLW3f7Q==
1337
+ "@jsforce/jsforce-node@^3.8.2":
1338
+ version "3.8.2"
1339
+ resolved "https://registry.yarnpkg.com/@jsforce/jsforce-node/-/jsforce-node-3.8.2.tgz#68b903f6733ae479086ab02ea4a2de87a7f208eb"
1340
+ integrity sha512-ewaRr9JnZRW6I28C/TzUnv5p70zMrWsKCq2ovRW6X557/ikdfvA24F9k4cQXZnTG2lZLEfVn+WwdBGEtY7pPnQ==
1340
1341
  dependencies:
1341
1342
  "@sindresorhus/is" "^4"
1342
1343
  base64url "^3.0.1"
@@ -1367,9 +1368,10 @@
1367
1368
  "@nodelib/fs.scandir" "2.1.5"
1368
1369
  fastq "^1.6.0"
1369
1370
 
1370
- "@oclif/core@4.2.10", "@oclif/core@^4", "@oclif/core@^4.0.27", "@oclif/core@^4.2.10":
1371
- version "4.2.10"
1372
- resolved "https://registry.yarnpkg.com/@oclif/core/-/core-4.2.10.tgz#31dfb7481c79887c3e672e10c981fcc01fcbaeb3"
1371
+ "@oclif/core@4.3.3", "@oclif/core@^4", "@oclif/core@^4.0.27", "@oclif/core@^4.3.2":
1372
+ version "4.3.3"
1373
+ resolved "https://registry.yarnpkg.com/@oclif/core/-/core-4.3.3.tgz#a527536b62ef202c58d2b69ce9cd1e64eb3a94b1"
1374
+ integrity sha512-A0mk4nlVE+r34fl91OdglXVPwhhfzM59IhSxnOigqMkwxFgT8z3i2WlUgzmazzvzSccs2KM4N2HkTS3NEvW96g==
1373
1375
  dependencies:
1374
1376
  ansi-escapes "^4.3.2"
1375
1377
  ansis "^3.17.0"
@@ -1378,7 +1380,6 @@
1378
1380
  debug "^4.4.0"
1379
1381
  ejs "^3.1.10"
1380
1382
  get-package-type "^0.1.0"
1381
- globby "^11.1.0"
1382
1383
  indent-string "^4.0.0"
1383
1384
  is-wsl "^2.2.0"
1384
1385
  lilconfig "^3.1.3"
@@ -1386,13 +1387,15 @@
1386
1387
  semver "^7.6.3"
1387
1388
  string-width "^4.2.3"
1388
1389
  supports-color "^8"
1390
+ tinyglobby "^0.2.14"
1389
1391
  widest-line "^3.1.0"
1390
1392
  wordwrap "^1.0.0"
1391
1393
  wrap-ansi "^7.0.0"
1392
1394
 
1393
1395
  "@oclif/plugin-command-snapshot@^5.2.23":
1394
- version "5.2.38"
1395
- resolved "https://registry.yarnpkg.com/@oclif/plugin-command-snapshot/-/plugin-command-snapshot-5.2.38.tgz#a297c129b97c82de99d854b42304ef5b45c126d9"
1396
+ version "5.3.1"
1397
+ resolved "https://registry.yarnpkg.com/@oclif/plugin-command-snapshot/-/plugin-command-snapshot-5.3.1.tgz#95fbba5980c89398dfb3ade0ae733d972f217a03"
1398
+ integrity sha512-ytLavwqDuQ2+1Z4vV0lREGKf0JP6GTtVvYnrCMk9FL+C+CU6qnPyzI9fttuqwLMbfrsX8Fl8/6TT7dCWdX6HSg==
1396
1399
  dependencies:
1397
1400
  "@oclif/core" "^4"
1398
1401
  ansis "^3.17.0"
@@ -1401,7 +1404,7 @@
1401
1404
  lodash.difference "^4.5.0"
1402
1405
  lodash.get "^4.4.2"
1403
1406
  lodash.sortby "^4.7.0"
1404
- semver "^7.7.1"
1407
+ semver "^7.7.2"
1405
1408
  ts-json-schema-generator "^1.5.1"
1406
1409
 
1407
1410
  "@oclif/plugin-help@^6.2.27":
@@ -1435,6 +1438,11 @@
1435
1438
  version "0.11.0"
1436
1439
  resolved "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz"
1437
1440
 
1441
+ "@pkgr/core@^0.2.7":
1442
+ version "0.2.7"
1443
+ resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.2.7.tgz#eb5014dfd0b03e7f3ba2eeeff506eed89b028058"
1444
+ integrity sha512-YLT9Zo3oNPJoBjBc4q8G2mjU4tqIbf5CEOORbUUr48dCD9q3umJ3IPlVqOqDakPfd2HuwccBaqlGhN4Gmr5OWg==
1445
+
1438
1446
  "@pnpm/config.env-replace@^1.1.0":
1439
1447
  version "1.1.0"
1440
1448
  resolved "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz"
@@ -1472,12 +1480,12 @@
1472
1480
  strip-ansi "6.0.1"
1473
1481
  ts-retry-promise "^0.8.1"
1474
1482
 
1475
- "@salesforce/core@^8.10.3", "@salesforce/core@^8.5.1", "@salesforce/core@^8.8.0", "@salesforce/core@^8.8.7":
1476
- version "8.10.3"
1477
- resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-8.10.3.tgz#3cc2c99d097757cb4b08dab921254cfa3a00c7c1"
1478
- integrity sha512-juqbU304TBrrjb8sZGw+QkeAJISKu4+v2XIMTCxGJoEjs4LLhsyI7/drxCUY+7FNye+veAGeJdn/PCxkKhSgcA==
1483
+ "@salesforce/core@^8.10.3", "@salesforce/core@^8.12.0", "@salesforce/core@^8.5.1", "@salesforce/core@^8.8.0":
1484
+ version "8.14.0"
1485
+ resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-8.14.0.tgz#fcdd8b641221fee668b95ed2ede56b251668077c"
1486
+ integrity sha512-Ta1aY15TfgxLyFNNlkw60Mm3dDtiEb50TSp3/wzrbuMgkEGvFBEZQca/ChrjANXhpw8pURDUTzL4VV/1eGCHrQ==
1479
1487
  dependencies:
1480
- "@jsforce/jsforce-node" "^3.8.1"
1488
+ "@jsforce/jsforce-node" "^3.8.2"
1481
1489
  "@salesforce/kit" "^3.2.2"
1482
1490
  "@salesforce/schemas" "^1.9.0"
1483
1491
  "@salesforce/ts-types" "^2.0.10"
@@ -1489,9 +1497,9 @@
1489
1497
  js2xmlparser "^4.0.1"
1490
1498
  jsonwebtoken "9.0.2"
1491
1499
  jszip "3.10.1"
1492
- pino "^9.4.0"
1500
+ pino "^9.7.0"
1493
1501
  pino-abstract-transport "^1.2.0"
1494
- pino-pretty "^11.2.2"
1502
+ pino-pretty "^11.3.0"
1495
1503
  proper-lockfile "^4.1.2"
1496
1504
  semver "^7.6.3"
1497
1505
  ts-retry-promise "^0.8.1"
@@ -1563,11 +1571,11 @@
1563
1571
  terminal-link "^3.0.0"
1564
1572
 
1565
1573
  "@salesforce/source-deploy-retrieve@^12.16.5":
1566
- version "12.19.3"
1567
- resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.19.3.tgz#42b34913b624115aee36cd289cb5ea1d5de9b7b1"
1568
- integrity sha512-rvdEfi2beJmVbN4NQ3Ve4dULq+wMFuLKBKpmNBIb9udXNVZd8Q0P7TO9pM/tzfeAfwfdTE7swXaYe2Qv5UAd+g==
1574
+ version "12.19.10"
1575
+ resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.19.10.tgz#56818cc729bc21625b0653ad8b184c86023261b8"
1576
+ integrity sha512-FfiX+Y96QnLjabpWjOxJgGq5Kh+ZQaP+RJa71DO/DtFFa0SlGW+VWqVzjSnNboHyq+nPF6DPDm1wT633zbEYvw==
1569
1577
  dependencies:
1570
- "@salesforce/core" "^8.8.7"
1578
+ "@salesforce/core" "^8.12.0"
1571
1579
  "@salesforce/kit" "^3.2.3"
1572
1580
  "@salesforce/ts-types" "^2.0.12"
1573
1581
  "@salesforce/types" "^1.3.0"
@@ -2245,9 +2253,9 @@
2245
2253
  "@types/node" "*"
2246
2254
 
2247
2255
  "@types/node@*", "@types/node@^22.10.2", "@types/node@^22.5.5":
2248
- version "22.15.17"
2249
- resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.17.tgz#355ccec95f705b664e4332bb64a7f07db30b7055"
2250
- integrity sha512-wIX2aSZL5FE+MR0JlvF87BNVrtFWf6AE6rxSE9X7OwnVvoyCQjpzSRJ+M87se/4QCkCiebQAqrJ0y6fwIyi7nw==
2256
+ version "22.15.29"
2257
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.29.tgz#c75999124a8224a3f79dd8b6ccfb37d74098f678"
2258
+ integrity sha512-LNdjOkUDlU1RZb8e1kOIUpN1qQUlzGkEtbVNo53vbrwDg5om6oduhm4SiUaPW5ASTXhAiP0jInWG8Qx9fVlOeQ==
2251
2259
  dependencies:
2252
2260
  undici-types "~6.21.0"
2253
2261
 
@@ -2538,7 +2546,7 @@ ansi-styles@^6.1.0, ansi-styles@^6.2.1:
2538
2546
  version "6.2.1"
2539
2547
  resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz"
2540
2548
 
2541
- ansis@^3.17.0, ansis@^3.3.2:
2549
+ ansis@^3.16.0, ansis@^3.17.0, ansis@^3.3.2:
2542
2550
  version "3.17.0"
2543
2551
  resolved "https://registry.yarnpkg.com/ansis/-/ansis-3.17.0.tgz#fa8d9c2a93fe7d1177e0c17f9eeb562a58a832d7"
2544
2552
 
@@ -2890,7 +2898,7 @@ chalk@^2.4.2:
2890
2898
  escape-string-regexp "^1.0.5"
2891
2899
  supports-color "^5.3.0"
2892
2900
 
2893
- chalk@^4, chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0:
2901
+ chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0:
2894
2902
  version "4.1.2"
2895
2903
  resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
2896
2904
  dependencies:
@@ -3914,9 +3922,10 @@ faye@^1.4.0:
3914
3922
  tough-cookie "*"
3915
3923
  tunnel-agent "*"
3916
3924
 
3917
- fdir@^6.4.2:
3918
- version "6.4.3"
3919
- resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.3.tgz#011cdacf837eca9b811c89dbb902df714273db72"
3925
+ fdir@^6.4.4:
3926
+ version "6.4.6"
3927
+ resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.6.tgz#2b268c0232697063111bbf3f64810a2a741ba281"
3928
+ integrity sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==
3920
3929
 
3921
3930
  file-entry-cache@^6.0.1:
3922
3931
  version "6.0.1"
@@ -4523,9 +4532,10 @@ ignore@^5.2.0, ignore@^5.2.4, ignore@^5.3.0, ignore@^5.3.2:
4523
4532
  version "5.3.2"
4524
4533
  resolved "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz"
4525
4534
 
4526
- ignore@^7.0.3:
4527
- version "7.0.3"
4528
- resolved "https://registry.yarnpkg.com/ignore/-/ignore-7.0.3.tgz#397ef9315dfe0595671eefe8b633fec6943ab733"
4535
+ ignore@^7.0.3, ignore@^7.0.5:
4536
+ version "7.0.5"
4537
+ resolved "https://registry.yarnpkg.com/ignore/-/ignore-7.0.5.tgz#4cb5f6cd7d4c7ab0365738c7aea888baa6d7efd9"
4538
+ integrity sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==
4529
4539
 
4530
4540
  immediate@~3.0.5:
4531
4541
  version "3.0.6"
@@ -5666,21 +5676,21 @@ object.values@^1.2.0:
5666
5676
  es-object-atoms "^1.0.0"
5667
5677
 
5668
5678
  oclif@^4.15.26:
5669
- version "4.17.46"
5670
- resolved "https://registry.yarnpkg.com/oclif/-/oclif-4.17.46.tgz#c7bd4315ae4903ad5f9893f6d6e7b3b78c4209fb"
5671
- integrity sha512-huMvamv0zzIXrCbW5sgy40P1L6fJjPe4IfZKSmkmuPNGSpTy+fcNZ0gYwIuMlxiT3RarLYxYie+RVTyJLE3zXw==
5679
+ version "4.18.1"
5680
+ resolved "https://registry.yarnpkg.com/oclif/-/oclif-4.18.1.tgz#697c10712f022a4d8b596b15868a149fcbca3e8d"
5681
+ integrity sha512-C5w/kUuIH3WxtjSfg3vxbdinT1dZuFoNaU7YhBTRx/FshO4WNHPsRqLgFFdx94dezkbskMJFcESS6i5RM96YSw==
5672
5682
  dependencies:
5673
5683
  "@aws-sdk/client-cloudfront" "^3.787.0"
5674
5684
  "@aws-sdk/client-s3" "^3.787.0"
5675
5685
  "@inquirer/confirm" "^3.1.22"
5676
5686
  "@inquirer/input" "^2.2.4"
5677
5687
  "@inquirer/select" "^2.5.0"
5678
- "@oclif/core" "^4.2.10"
5688
+ "@oclif/core" "^4.3.2"
5679
5689
  "@oclif/plugin-help" "^6.2.27"
5680
5690
  "@oclif/plugin-not-found" "^3.2.48"
5681
5691
  "@oclif/plugin-warn-if-update-available" "^3.1.38"
5692
+ ansis "^3.16.0"
5682
5693
  async-retry "^1.3.3"
5683
- chalk "^4"
5684
5694
  change-case "^4"
5685
5695
  debug "^4.4.0"
5686
5696
  ejs "^3.1.10"
@@ -5934,16 +5944,24 @@ picomatch@^4.0.2:
5934
5944
  version "4.0.2"
5935
5945
  resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.2.tgz#77c742931e8f3b8820946c76cd0c1f13730d1dab"
5936
5946
 
5937
- pino-abstract-transport@^1.0.0, pino-abstract-transport@^1.2.0:
5947
+ pino-abstract-transport@^1.2.0:
5938
5948
  version "1.2.0"
5939
5949
  resolved "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz"
5940
5950
  dependencies:
5941
5951
  readable-stream "^4.0.0"
5942
5952
  split2 "^4.0.0"
5943
5953
 
5944
- pino-pretty@^11.2.2:
5945
- version "11.2.2"
5946
- resolved "https://registry.npmjs.org/pino-pretty/-/pino-pretty-11.2.2.tgz"
5954
+ pino-abstract-transport@^2.0.0:
5955
+ version "2.0.0"
5956
+ resolved "https://registry.yarnpkg.com/pino-abstract-transport/-/pino-abstract-transport-2.0.0.tgz#de241578406ac7b8a33ce0d77ae6e8a0b3b68a60"
5957
+ integrity sha512-F63x5tizV6WCh4R6RHyi2Ml+M70DNRXt/+HANowMflpgGFMAym/VKm6G7ZOQRjqN7XbGxK1Lg9t6ZrtzOaivMw==
5958
+ dependencies:
5959
+ split2 "^4.0.0"
5960
+
5961
+ pino-pretty@^11.3.0:
5962
+ version "11.3.0"
5963
+ resolved "https://registry.yarnpkg.com/pino-pretty/-/pino-pretty-11.3.0.tgz#390b3be044cf3d2e9192c7d19d44f6b690468f2e"
5964
+ integrity sha512-oXwn7ICywaZPHmu3epHGU2oJX4nPmKvHvB/bwrJHlGcbEWaVcotkpyVHMKLKmiVryWYByNp0jpgAcXpFJDXJzA==
5947
5965
  dependencies:
5948
5966
  colorette "^2.0.7"
5949
5967
  dateformat "^4.6.3"
@@ -5953,7 +5971,7 @@ pino-pretty@^11.2.2:
5953
5971
  joycon "^3.1.1"
5954
5972
  minimist "^1.2.6"
5955
5973
  on-exit-leak-free "^2.1.0"
5956
- pino-abstract-transport "^1.0.0"
5974
+ pino-abstract-transport "^2.0.0"
5957
5975
  pump "^3.0.0"
5958
5976
  readable-stream "^4.0.0"
5959
5977
  secure-json-parse "^2.4.0"
@@ -5964,16 +5982,17 @@ pino-std-serializers@^7.0.0:
5964
5982
  version "7.0.0"
5965
5983
  resolved "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz"
5966
5984
 
5967
- pino@^9.4.0:
5968
- version "9.4.0"
5969
- resolved "https://registry.npmjs.org/pino/-/pino-9.4.0.tgz"
5985
+ pino@^9.7.0:
5986
+ version "9.7.0"
5987
+ resolved "https://registry.yarnpkg.com/pino/-/pino-9.7.0.tgz#ff7cd86eb3103ee620204dbd5ca6ffda8b53f645"
5988
+ integrity sha512-vnMCM6xZTb1WDmLvtG2lE/2p+t9hDEIvTWJsu6FejkE62vB7gDhvzrpFR4Cw2to+9JNQxVnkAKVPA1KPB98vWg==
5970
5989
  dependencies:
5971
5990
  atomic-sleep "^1.0.0"
5972
5991
  fast-redact "^3.1.1"
5973
5992
  on-exit-leak-free "^2.1.0"
5974
- pino-abstract-transport "^1.2.0"
5993
+ pino-abstract-transport "^2.0.0"
5975
5994
  pino-std-serializers "^7.0.0"
5976
- process-warning "^4.0.0"
5995
+ process-warning "^5.0.0"
5977
5996
  quick-format-unescaped "^4.0.3"
5978
5997
  real-require "^0.2.0"
5979
5998
  safe-stable-stringify "^2.3.1"
@@ -6019,11 +6038,12 @@ pretty-quick@^3.3.1:
6019
6038
  tslib "^2.6.2"
6020
6039
 
6021
6040
  pretty-quick@^4.0.0:
6022
- version "4.1.1"
6023
- resolved "https://registry.yarnpkg.com/pretty-quick/-/pretty-quick-4.1.1.tgz#8a0c883e4beeb0eddbe7eda50d7b1251d4f72968"
6041
+ version "4.2.2"
6042
+ resolved "https://registry.yarnpkg.com/pretty-quick/-/pretty-quick-4.2.2.tgz#0fc31da666f182fe14e119905fc9829b5b85a234"
6043
+ integrity sha512-uAh96tBW1SsD34VhhDmWuEmqbpfYc/B3j++5MC/6b3Cb8Ow7NJsvKFhg0eoGu2xXX+o9RkahkTK6sUdd8E7g5w==
6024
6044
  dependencies:
6025
- find-up "^5.0.0"
6026
- ignore "^7.0.3"
6045
+ "@pkgr/core" "^0.2.7"
6046
+ ignore "^7.0.5"
6027
6047
  mri "^1.2.0"
6028
6048
  picocolors "^1.1.1"
6029
6049
  picomatch "^4.0.2"
@@ -6040,9 +6060,10 @@ process-on-spawn@^1.0.0:
6040
6060
  dependencies:
6041
6061
  fromentries "^1.2.0"
6042
6062
 
6043
- process-warning@^4.0.0:
6044
- version "4.0.0"
6045
- resolved "https://registry.npmjs.org/process-warning/-/process-warning-4.0.0.tgz"
6063
+ process-warning@^5.0.0:
6064
+ version "5.0.0"
6065
+ resolved "https://registry.yarnpkg.com/process-warning/-/process-warning-5.0.0.tgz#566e0bf79d1dff30a72d8bbbe9e8ecefe8d378d7"
6066
+ integrity sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA==
6046
6067
 
6047
6068
  process@^0.11.10:
6048
6069
  version "0.11.10"
@@ -6357,9 +6378,10 @@ semver@^6.0.0, semver@^6.3.1:
6357
6378
  version "6.3.1"
6358
6379
  resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz"
6359
6380
 
6360
- semver@^7.3.4, semver@^7.3.5, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.6.3, semver@^7.7.1:
6361
- version "7.7.1"
6362
- resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.1.tgz#abd5098d82b18c6c81f6074ff2647fd3e7220c9f"
6381
+ semver@^7.3.4, semver@^7.3.5, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.6.3, semver@^7.7.1, semver@^7.7.2:
6382
+ version "7.7.2"
6383
+ resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58"
6384
+ integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==
6363
6385
 
6364
6386
  sentence-case@^3.0.4:
6365
6387
  version "3.0.4"
@@ -6835,11 +6857,12 @@ tinyexec@^1.0.0:
6835
6857
  resolved "https://registry.yarnpkg.com/tinyexec/-/tinyexec-1.0.1.tgz#70c31ab7abbb4aea0a24f55d120e5990bfa1e0b1"
6836
6858
  integrity sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==
6837
6859
 
6838
- tinyglobby@^0.2.9:
6839
- version "0.2.10"
6840
- resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.10.tgz#e712cf2dc9b95a1f5c5bbd159720e15833977a0f"
6860
+ tinyglobby@^0.2.14, tinyglobby@^0.2.9:
6861
+ version "0.2.14"
6862
+ resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.14.tgz#5280b0cf3f972b050e74ae88406c0a6a58f4079d"
6863
+ integrity sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==
6841
6864
  dependencies:
6842
- fdir "^6.4.2"
6865
+ fdir "^6.4.4"
6843
6866
  picomatch "^4.0.2"
6844
6867
 
6845
6868
  tldts-core@^6.1.52:
@@ -7342,11 +7365,7 @@ yallist@^4.0.0:
7342
7365
  version "4.0.0"
7343
7366
  resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz"
7344
7367
 
7345
- yaml@^2.5.1:
7346
- version "2.5.1"
7347
- resolved "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz"
7348
-
7349
- yaml@^2.7.1:
7368
+ yaml@^2.5.1, yaml@^2.7.1:
7350
7369
  version "2.7.1"
7351
7370
  resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.7.1.tgz#44a247d1b88523855679ac7fa7cda6ed7e135cf6"
7352
7371
  integrity sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==
@@ -33,6 +33,7 @@
33
33
  "name": "format",
34
34
  "required": false,
35
35
  "summary": "Format of the output.",
36
+ "default": "sf",
36
37
  "hasDynamicHelp": false,
37
38
  "multiple": false,
38
39
  "type": "option"
@@ -99,5 +100,5 @@
99
100
  ]
100
101
  }
101
102
  },
102
- "version": "1.12.2"
103
+ "version": "1.12.4"
103
104
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "apextestlist",
3
3
  "description": "A plugin that generates a list of apex test and test suite names for use in CI/CD pipelines.",
4
- "version": "1.12.2",
4
+ "version": "1.12.4",
5
5
  "dependencies": {
6
- "@oclif/core": "4.2.10",
6
+ "@oclif/core": "4.3.3",
7
7
  "@salesforce/core": "^8.8.0",
8
8
  "@salesforce/sf-plugins-core": "^11.3.12",
9
9
  "@salesforce/source-deploy-retrieve": "^12.16.5",
@@ -1,2 +0,0 @@
1
- export declare const SFDX_PROJECT_FILE_NAME = "sfdx-project.json";
2
- export declare const SEARCHABLE_METADATA_FOLDERS: string[];
@@ -1,4 +0,0 @@
1
- 'use strict';
2
- export const SFDX_PROJECT_FILE_NAME = 'sfdx-project.json';
3
- export const SEARCHABLE_METADATA_FOLDERS = ['classes', 'triggers', 'testSuites'];
4
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/helpers/constants.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CAAC;AAC1D,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatters.js","sourceRoot":"","sources":["../../src/helpers/formatters.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAGb,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,MAAc,EAAE,KAAe;IAC9D,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,IAAI;YACP,OAAO,OAAO,CAAC,OAAO,CAAC;gBACrB,KAAK;gBACL,OAAO,EAAE,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;aACtC,CAAC,CAAC;QACL,KAAK,KAAK;YACR,OAAO,OAAO,CAAC,OAAO,CAAC;gBACrB,KAAK;gBACL,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;aACzB,CAAC,CAAC;QACL;YACE,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AAM,WAAW,CAAC;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAExD,KAAK,UAAU,YAAY,CACzB,GAAW;IAEX,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,sBAAsB,CAAC,CAAC;IACnD,IAAI,CAAC;QACH,6DAA6D;QAC7D,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC;QACvB,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC;IACvD,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,4DAA4D;YAC5D,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;QAC1E,CAAC;QACD,6CAA6C;QAC7C,OAAO,YAAY,CAAC,SAAS,CAAC,CAAC;IACjC,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW;IAC/B,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IACjC,OAAO,YAAY,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC"}
@@ -1,32 +0,0 @@
1
- /**
2
- * Given a certain manifest file, reads that file and returns the classes,
3
- * triggers and test suites members with their types as prefix.
4
- *
5
- * For example, as ApexClass:MyClass.
6
- *
7
- * @param manifestFile the path to the manifest file
8
- * @returns a list of strings with the type and member names
9
- */
10
- export declare function extractTypeNamesFromManifestFile(manifestFile: string): Promise<string[]>;
11
- /**
12
- * Analyzes the content of a test suite xml file and returns the Apex classes
13
- * included in it.
14
- *
15
- * @param data string with the content of the test suite xml file
16
- * @returns a list of test classes names in the test suite
17
- */
18
- export declare function parseTestSuiteFile(data: string): string[];
19
- /**
20
- * Parses the line in an Apex file that contains the test names.
21
- *
22
- * @param testNames names of the tests in an Apex file line
23
- * @returns list of the test classes
24
- */
25
- export declare function parseTestsNames(testNames: string[] | null): string[];
26
- /**
27
- * Parses the line in an Apex file that contains the test suites names.
28
- *
29
- * @param testNames names of the test suites in an Apex file line
30
- * @returns list of the test suites
31
- */
32
- export declare function parseTestSuitesNames(testSuitesNames: string[] | null): string[];
@@ -1,87 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unsafe-call */
2
- /* eslint-disable @typescript-eslint/no-unsafe-assignment */
3
- /* eslint-disable @typescript-eslint/no-unsafe-argument */
4
- /* eslint-disable @typescript-eslint/no-unsafe-member-access */
5
- 'use strict';
6
- import { existsSync } from 'node:fs';
7
- import { ComponentSet } from '@salesforce/source-deploy-retrieve';
8
- import { Parser } from 'xml2js';
9
- /**
10
- * Given a certain manifest file, reads that file and returns the classes,
11
- * triggers and test suites members with their types as prefix.
12
- *
13
- * For example, as ApexClass:MyClass.
14
- *
15
- * @param manifestFile the path to the manifest file
16
- * @returns a list of strings with the type and member names
17
- */
18
- export async function extractTypeNamesFromManifestFile(manifestFile) {
19
- const result = [];
20
- if (!manifestFile || !existsSync(manifestFile)) {
21
- return result;
22
- }
23
- const componentSet = await ComponentSet.fromManifest({ manifestPath: manifestFile });
24
- for (const component of componentSet) {
25
- const typeName = component.type.name;
26
- if (['ApexClass', 'ApexTrigger', 'ApexTestSuite'].includes(typeName)) {
27
- result.push(`${typeName}:${component.fullName}`);
28
- }
29
- }
30
- return result.sort((a, b) => a.localeCompare(b));
31
- }
32
- /**
33
- * Analyzes the content of a test suite xml file and returns the Apex classes
34
- * included in it.
35
- *
36
- * @param data string with the content of the test suite xml file
37
- * @returns a list of test classes names in the test suite
38
- */
39
- export function parseTestSuiteFile(data) {
40
- const result = [];
41
- new Parser().parseString(data, (error, parsed) => {
42
- if (error) {
43
- throw error;
44
- }
45
- parsed.ApexTestSuite.testClassName.forEach((testSuite) => {
46
- result.push(testSuite);
47
- });
48
- });
49
- return result.sort();
50
- }
51
- /**
52
- * Parses the line in an Apex file that contains the test names.
53
- *
54
- * @param testNames names of the tests in an Apex file line
55
- * @returns list of the test classes
56
- */
57
- export function parseTestsNames(testNames) {
58
- if (!testNames || testNames.length === 0) {
59
- return [];
60
- }
61
- // remove the prefix @Tests
62
- return testNames
63
- .join(' ')
64
- .replace(/(@tests\s*:\s*)/gi, '')
65
- .replace(/[,\s]+/g, ' ')
66
- .trim()
67
- .split(' ');
68
- }
69
- /**
70
- * Parses the line in an Apex file that contains the test suites names.
71
- *
72
- * @param testNames names of the test suites in an Apex file line
73
- * @returns list of the test suites
74
- */
75
- export function parseTestSuitesNames(testSuitesNames) {
76
- if (!testSuitesNames || testSuitesNames.length === 0) {
77
- return [];
78
- }
79
- // remove the prefix @testsuites
80
- return testSuitesNames
81
- .join(' ')
82
- .replace(/(@testsuites\s*:\s*)/gi, '')
83
- .replace(/[,\s]+/g, ' ')
84
- .trim()
85
- .split(' ');
86
- }
87
- //# sourceMappingURL=parsers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../src/helpers/parsers.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,4DAA4D;AAC5D,0DAA0D;AAC1D,+DAA+D;AAC/D,YAAY,CAAC;AAEb,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,YAAY,EAAG,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,gCAAgC,CAAC,YAAoB;IACzE,MAAM,MAAM,GAAa,EAAE,CAAC;IAE5B,IAAI,CAAC,YAAY,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/C,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,YAAY,GAAiB,MAAM,YAAY,CAAC,YAAY,CAAC,EAAC,YAAY,EAAE,YAAY,EAAC,CAAC,CAAC;IACjG,KAAK,MAAM,SAAS,IAAI,YAAY,EAAE,CAAC;QAC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,CAAC;AAChB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,eAAgC;IACnE,IAAI,CAAC,eAAe,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,gCAAgC;IAChC,OAAO,eAAe;SACnB,IAAI,CAAC,GAAG,CAAC;SACT,OAAO,CAAC,wBAAwB,EAAE,EAAE,CAAC;SACrC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC;SACvB,IAAI,EAAE;SACN,KAAK,CAAC,GAAG,CAAC,CAAC;AAChB,CAAC"}
@@ -1,21 +0,0 @@
1
- import { SearchResult } from './types.js';
2
- export declare function getConcurrencyThreshold(): number;
3
- /**
4
- * Given a certain directory, search its contents for files that end with
5
- * '.testSuite-meta.xml' and extract the class names mentioned in the test
6
- * suites.
7
- *
8
- * @param directory directory within the project to search for files
9
- * @returns a Promise<string> with a list of test names
10
- */
11
- export declare function searchDirectoryForTestNamesInTestSuites(directory: string, packageDirectories: string[]): Promise<string[]>;
12
- export declare function matchWildcard(wildcard: string, test: string): boolean;
13
- /**
14
- * Given a certain directory, search its contents for files that end with '.cls' or '.trigger'.
15
- * Extracts the test names from the annotations on those files, and returns a list with those.
16
- *
17
- * @param directory directory within the project to search for files
18
- * @param names names of test files
19
- * @returns list of test classes
20
- */
21
- export declare function searchDirectoryForTestClasses(directory: string, names: string[] | null): Promise<SearchResult>;