Skip to content

Commit 1914956

Browse files
committed
chore: code review
1 parent 2c3596f commit 1914956

File tree

3 files changed

+79
-9
lines changed

3 files changed

+79
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@inquirer/select": "^4.0.1",
1111
"@oclif/core": "^4",
1212
"@oclif/multi-stage-output": "^0.7.12",
13-
"@salesforce/agents": "^0.3.0",
13+
"@salesforce/agents": "^0.4.0",
1414
"@salesforce/core": "^8.8.0",
1515
"@salesforce/kit": "^3.2.1",
1616
"@salesforce/sf-plugins-core": "^12.1.0",

src/handleTestResults.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7+
import { join } from 'node:path';
78
import { writeFile, mkdir } from 'node:fs/promises';
89
import { AgentTestDetailsResponse, jsonFormat, humanFormat, junitFormat } from '@salesforce/agents';
910
import { Ux } from '@salesforce/sf-plugins-core/Ux';
@@ -12,7 +13,7 @@ async function writeFileToDir(outputDir: string, fileName: string, content: stri
1213
// if directory doesn't exist, create it
1314
await mkdir(outputDir, { recursive: true });
1415

15-
await writeFile(`${outputDir}/${fileName}`, content);
16+
await writeFile(join(outputDir, fileName), content);
1617
}
1718

1819
export async function handleTestResults({

yarn.lock

Lines changed: 76 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@
13441344
http-call "^5.2.2"
13451345
lodash "^4.17.21"
13461346

1347-
"@oclif/table@^0.3.2", "@oclif/table@^0.3.3":
1347+
"@oclif/table@^0.3.2":
13481348
version "0.3.5"
13491349
resolved "https://registry.yarnpkg.com/@oclif/table/-/table-0.3.5.tgz#118149eab364f3485eab5c9fd0d717c56082bacb"
13501350
integrity sha512-1IjoVz7WAdUdBW5vYIRc6wt9N7Ezwll6AtdmeqLQ8lUmB9gQJVyeb7dqXtUaUvIG7bZMvryfPe6Xibeo5FTCWA==
@@ -1360,6 +1360,22 @@
13601360
strip-ansi "^7.1.0"
13611361
wrap-ansi "^9.0.0"
13621362

1363+
"@oclif/table@^0.3.5":
1364+
version "0.3.7"
1365+
resolved "https://registry.yarnpkg.com/@oclif/table/-/table-0.3.7.tgz#b13fb4525413c570cf1c34c8f6da9e13ea7ced0e"
1366+
integrity sha512-ixk/2swooqgg07N3mICe3gvkq/G4Au3jNMaRNCWIfWtcoyT+tTrOQxD+Ead0wMBuZl/J+CyEwImIjJqC21P1kA==
1367+
dependencies:
1368+
"@oclif/core" "^4"
1369+
"@types/react" "^18.3.12"
1370+
change-case "^5.4.4"
1371+
cli-truncate "^4.0.0"
1372+
ink "^5.1.0"
1373+
natural-orderby "^3.0.2"
1374+
object-hash "^3.0.0"
1375+
react "^18.3.1"
1376+
strip-ansi "^7.1.0"
1377+
wrap-ansi "^9.0.0"
1378+
13631379
"@oclif/test@^4.1.0":
13641380
version "4.1.0"
13651381
resolved "https://registry.yarnpkg.com/@oclif/test/-/test-4.1.0.tgz#7935e3707cf07480790139e02973196d18d16822"
@@ -1373,15 +1389,16 @@
13731389
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
13741390
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
13751391

1376-
"@salesforce/agents@^0.3.0":
1377-
version "0.3.0"
1378-
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.3.0.tgz#5f58d69eca1dde07daaf88bc2226b1a09e579666"
1379-
integrity sha512-BV/Fa+WN8IT5n+bsdDI8wga5dxjY9Rhu6eAvU3OCyRQ7F0nFd5uqLe2Ybo+0gLbGCvGCrV9gt8eJ5z4fsgLoDQ==
1392+
"@salesforce/agents@^0.4.0":
1393+
version "0.4.0"
1394+
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.4.0.tgz#7d2a1912113abf47bdb610db9352067a69747d24"
1395+
integrity sha512-H1CyEXyMkm9g55Zl55r5cL7ka4IQtoLqiDjfkxdoqEFn+FiQ6D2OpOR9ox2S5ATGLe1ELoAHWspncAcFBbMF/Q==
13801396
dependencies:
1381-
"@oclif/table" "^0.3.3"
1397+
"@oclif/table" "^0.3.5"
13821398
"@salesforce/core" "^8.8.0"
13831399
"@salesforce/kit" "^3.2.3"
13841400
"@salesforce/sf-plugins-core" "^12.1.0"
1401+
fast-xml-parser "^4"
13851402
nock "^13.5.6"
13861403

13871404
"@salesforce/cli-plugins-testkit@^5.3.35":
@@ -3760,6 +3777,11 @@ es-to-primitive@^1.2.1:
37603777
is-date-object "^1.0.1"
37613778
is-symbol "^1.0.2"
37623779

3780+
es-toolkit@^1.22.0:
3781+
version "1.29.0"
3782+
resolved "https://registry.yarnpkg.com/es-toolkit/-/es-toolkit-1.29.0.tgz#a9c54e87880002e4186560fe0a567e76a61cb61a"
3783+
integrity sha512-GjTll+E6APcfAQA09D89HdT8Qn2Yb+TeDSDBTMcxAo+V+w1amAtCI15LJu4YPH/UCPoSo/F47Gr1LIM0TE0lZA==
3784+
37633785
es6-error@^4.0.1:
37643786
version "4.1.1"
37653787
resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d"
@@ -4151,6 +4173,13 @@ [email protected]:
41514173
dependencies:
41524174
strnum "^1.0.5"
41534175

4176+
fast-xml-parser@^4:
4177+
version "4.5.0"
4178+
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.5.0.tgz#2882b7d01a6825dfdf909638f2de0256351def37"
4179+
integrity sha512-/PlTQCI96+fZMAOLMZK4CWG1ItCbfZ/0jx7UIJFChPNrx7tcEgerUgWbeieCM9MfHInUDyK8DWYZ+YrywDJuTg==
4180+
dependencies:
4181+
strnum "^1.0.5"
4182+
41544183
fastest-levenshtein@^1.0.7:
41554184
version "1.0.16"
41564185
resolved "https://registry.yarnpkg.com/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz#210e61b6ff181de91ea9b3d1b84fdedd47e034e5"
@@ -4925,6 +4954,36 @@ ink@^5.0.1:
49254954
ws "^8.15.0"
49264955
yoga-wasm-web "~0.3.3"
49274956

4957+
ink@^5.1.0:
4958+
version "5.1.0"
4959+
resolved "https://registry.yarnpkg.com/ink/-/ink-5.1.0.tgz#8ed050bf7a468489f231c99031f8bb1393c44079"
4960+
integrity sha512-3vIO+CU4uSg167/dZrg4wHy75llUINYXxN4OsdaCkE40q4zyOTPwNc2VEpLnnWsIvIQeo6x6lilAhuaSt+rIsA==
4961+
dependencies:
4962+
"@alcalzone/ansi-tokenize" "^0.1.3"
4963+
ansi-escapes "^7.0.0"
4964+
ansi-styles "^6.2.1"
4965+
auto-bind "^5.0.1"
4966+
chalk "^5.3.0"
4967+
cli-boxes "^3.0.0"
4968+
cli-cursor "^4.0.0"
4969+
cli-truncate "^4.0.0"
4970+
code-excerpt "^4.0.0"
4971+
es-toolkit "^1.22.0"
4972+
indent-string "^5.0.0"
4973+
is-in-ci "^1.0.0"
4974+
patch-console "^2.0.0"
4975+
react-reconciler "^0.29.0"
4976+
scheduler "^0.23.0"
4977+
signal-exit "^3.0.7"
4978+
slice-ansi "^7.1.0"
4979+
stack-utils "^2.0.6"
4980+
string-width "^7.2.0"
4981+
type-fest "^4.27.0"
4982+
widest-line "^5.0.0"
4983+
wrap-ansi "^9.0.0"
4984+
ws "^8.18.0"
4985+
yoga-wasm-web "~0.3.3"
4986+
49284987
internal-slot@^1.0.5:
49294988
version "1.0.5"
49304989
resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986"
@@ -5085,6 +5144,11 @@ is-in-ci@^0.1.0:
50855144
resolved "https://registry.yarnpkg.com/is-in-ci/-/is-in-ci-0.1.0.tgz#5e07d6a02ec3a8292d3f590973357efa3fceb0d3"
50865145
integrity sha512-d9PXLEY0v1iJ64xLiQMJ51J128EYHAaOR4yZqQi8aHGfw6KgifM3/Viw1oZZ1GCVmb3gBuyhLyHj0HgR2DhSXQ==
50875146

5147+
is-in-ci@^1.0.0:
5148+
version "1.0.0"
5149+
resolved "https://registry.yarnpkg.com/is-in-ci/-/is-in-ci-1.0.0.tgz#9a86bbda7e42c6129902e0574c54b018fbb6ab88"
5150+
integrity sha512-eUuAjybVTHMYWm/U+vBO1sY/JOCgoPCXRxzdju0K+K0BiGW0SChEL1MLC0PoCIR1OlPo5YAp8HuQoUlsWEICwg==
5151+
50885152
is-map@^2.0.3:
50895153
version "2.0.3"
50905154
resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.3.tgz#ede96b7fe1e270b3c4465e3a465658764926d62e"
@@ -7767,6 +7831,11 @@ type-fest@^4.18.2:
77677831
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.29.1.tgz#9c125cb7c0cef6695f3c0b9d15d520c5dbadfcba"
77687832
integrity sha512-Y1zUveI92UYM/vo1EFlQSsNf74+hfKH+7saZJslF0Fw92FRaiTAnHPIvo9d7SLxXt/gAYqA4RXyDTioMQCCp0A==
77697833

7834+
type-fest@^4.27.0:
7835+
version "4.30.0"
7836+
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.30.0.tgz#cf411e7630578ad9e9884951dfaeef6588f970fe"
7837+
integrity sha512-G6zXWS1dLj6eagy6sVhOMQiLtJdxQBHIA9Z6HFUNLOlr6MFOgzV8wvmidtPONfPtEUv0uZsy77XJNzTAfwPDaA==
7838+
77707839
type-fest@^4.8.3:
77717840
version "4.26.1"
77727841
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.26.1.tgz#a4a17fa314f976dd3e6d6675ef6c775c16d7955e"
@@ -8201,7 +8270,7 @@ write-file-atomic@^3.0.0:
82018270
signal-exit "^3.0.2"
82028271
typedarray-to-buffer "^3.1.5"
82038272

8204-
ws@^8.15.0:
8273+
ws@^8.15.0, ws@^8.18.0:
82058274
version "8.18.0"
82068275
resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc"
82078276
integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==

0 commit comments

Comments
 (0)