Skip to content

Commit

Permalink
test: more cli fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Nov 7, 2023
1 parent 8a582fc commit b1d17b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions test/nuts/seeds/retrieve.packagenames.seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,26 @@ context('Retrieve packagenames NUTs', () => {
});

it('should retrieve two installed packages', async () => {
execCmd(`sfdx force:package:install --noprompt --package ${ELECTRON.id} --wait 5 --json`, {
execCmd(`force:package:install --noprompt --package ${ELECTRON.id} --wait 5 --json`, {
silent: true,
cli: 'sf',
ensureExitCode: 0,
});
execCmd(`sfdx force:package:install --noprompt --package ${ESCAPEROOM.id} --wait 5 --json`, {
execCmd(`force:package:install --noprompt --package ${ESCAPEROOM.id} --wait 5 --json`, {
silent: true,
cli: 'sf',
ensureExitCode: 0,
});

await testkit.retrieve({ args: `--packagenames "${ELECTRON.name}, ${ESCAPEROOM.name}"` });
await testkit.expect.packagesToBeRetrieved([ELECTRON.name, ESCAPEROOM.name]);
});

it('should retrieve an installed package and sourcepath', async () => {
execCmd(`sfdx force:package:install --noprompt --package ${ELECTRON.id} --wait 5 --json`, {
execCmd(`force:package:install --noprompt --package ${ELECTRON.id} --wait 5 --json`, {
silent: true,
cli: 'sf',
ensureExitCode: 0,
});

await testkit.retrieve({
Expand Down
2 changes: 1 addition & 1 deletion test/nuts/trackingCommands/forceIgnore.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('forceignore changes', () => {
],
});

execCmd(`force:apex:class:create -n IgnoreTest --outputdir ${classdir}`, { cli: 'sfdx' });
execCmd(`force:apex:class:create -n IgnoreTest --outputdir ${classdir}`, { cli: 'sf', ensureExitCode: 0 });

originalForceIgnore = await fs.promises.readFile(path.join(session.project.dir, '.forceignore'), 'utf8');
conn = await Connection.create({
Expand Down

0 comments on commit b1d17b9

Please sign in to comment.