Skip to content

Commit 6959a2a

Browse files
Merge pull request #338 from SavioBS629/npx-supply-chain-fix
fix: scope npx SDK invocations to the browserstack-node-sdk package
2 parents 8602f71 + f511e08 commit 6959a2a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/tools/appautomate-utils/appium-sdk/languages/nodejs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@ export function getNodejsAppInstructions(
5151
case AppSDKSupportedTestingFrameworkEnum.jest:
5252
return createStep(
5353
"Run your Jest test suite with BrowserStack SDK:",
54-
`Use the npm script defined in your package.json. For example:\n\n\`\`\`bash\nnpx run browserstack-node-sdk jest specs/single_test.js\n\`\`\``,
54+
`Use the npm script defined in your package.json. For example:\n\n\`\`\`bash\nnpx browserstack-node-sdk jest specs/single_test.js\n\`\`\``,
5555
);
5656
case AppSDKSupportedTestingFrameworkEnum.mocha:
5757
return createStep(
5858
"Run your Mocha test suite with BrowserStack SDK:",
59-
`Use the npm script defined in your package.json. For example:\n\n\`\`\`bash\nnpx run browserstack-node-sdk mocha specs/single_test.js\n\`\`\``,
59+
`Use the npm script defined in your package.json. For example:\n\n\`\`\`bash\nnpx browserstack-node-sdk mocha specs/single_test.js\n\`\`\``,
6060
);
6161

6262
case AppSDKSupportedTestingFrameworkEnum.cucumberJs:
6363
return createStep(
6464
"Run your Cucumber JS test suite with BrowserStack SDK:",
65-
`Use the npm script defined in your package.json. For example:\n\n\`\`\`bash\nnpx run browserstack-node-sdk cucumber-js specs/single_test.js\n\`\`\``,
65+
`Use the npm script defined in your package.json. For example:\n\n\`\`\`bash\nnpx browserstack-node-sdk cucumber-js specs/single_test.js\n\`\`\``,
6666
);
6767
default:
6868
return "";

src/tools/sdk-utils/bstack/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ npm i -D browserstack-node-sdk@latest
2525
---STEP---
2626
Run the following command to setup browserstack sdk:
2727
\`\`\`bash
28-
npx setup --username ${username} --key ${accessKey}
28+
npx browserstack-node-sdk setup --username ${username} --key ${accessKey}
2929
\`\`\``;
3030

3131
// Template for Gradle setup instructions (platform-independent)

src/tools/sdk-utils/percy-automate/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Install or upgrade the BrowserStack SDK:
167167
- Install the SDK:
168168
npm i -D browserstack-node-sdk@latest
169169
- Run the setup:
170-
npx setup --username "YOUR_USERNAME" --key "YOUR_ACCESS_KEY"
170+
npx browserstack-node-sdk setup --username "YOUR_USERNAME" --key "YOUR_ACCESS_KEY"
171171
172172
---STEP---
173173
Manually capture screenshots:

0 commit comments

Comments
 (0)