Skip to content

Commit

Permalink
test: pass cli to execCmd, don't use tracking for NUT orgs (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc authored Oct 18, 2023
1 parent 78dd6de commit d3c3aec
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 418 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@salesforce/dev-config": "^4.0.1",
"@salesforce/dev-scripts": "^5.11.0",
"@salesforce/plugin-command-reference": "^3.0.39",
"@salesforce/plugin-source": "^2.10.36",
"@salesforce/prettier-config": "^0.0.3",
"@salesforce/ts-sinon": "^1.4.17",
"@swc/core": "^1.3.36",
Expand Down
3 changes: 2 additions & 1 deletion test/allCommands.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ describe('verifies all commands run successfully ', () => {
{
setDefault: true,
config: path.join('config', 'project-scratch-def.json'),
tracksSource: false,
},
],
});

execCmd('force:source:push', { ensureExitCode: 0 });
execCmd('project:deploy:start', { ensureExitCode: 0, cli: 'sf' });
});

it('user display', () => {
Expand Down
3 changes: 2 additions & 1 deletion test/allCommandsNoJSON.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ describe('verifies all commands run successfully (no json)', () => {
{
setDefault: true,
config: path.join('config', 'project-scratch-def.json'),
tracksSource: false,
},
],
});

execCmd('force:source:push', { ensureExitCode: 0 });
execCmd('project:deploy:start', { ensureExitCode: 0, cli: 'sf' });
});

it('user display', () => {
Expand Down
3 changes: 2 additions & 1 deletion test/commands/create.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ describe('creates a user from a file and verifies', () => {
{
setDefault: true,
config: path.join('config', 'project-scratch-def.json'),
tracksSource: false,
},
],
});
execCmd('force:source:push', { ensureExitCode: 0 });
execCmd('project:deploy:start', { ensureExitCode: 0, cli: 'sf' });
});

it('creates a user with set-unique-username from username on commandline', () => {
Expand Down
3 changes: 2 additions & 1 deletion test/commands/permsetlicense/assign.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ describe('PermissionSetLicense tests', () => {
{
setDefault: true,
config: path.join('config', 'project-scratch-def.json'),
tracksSource: false,
},
],
});

execCmd('force:source:push', { ensureExitCode: 0 });
execCmd('project:deploy:start', { ensureExitCode: 0, cli: 'sf' });
});

it('assigns a psl to default user', () => {
Expand Down
3 changes: 2 additions & 1 deletion test/forceCommands.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ describe('verifies legacy force commands run successfully ', () => {
{
setDefault: true,
config: path.join('config', 'project-scratch-def.json'),
tracksSource: false,
},
],
});

execCmd('force:source:push', { ensureExitCode: 0 });
execCmd('project:deploy:start', { ensureExitCode: 0, cli: 'sf' });
});

it('user display', () => {
Expand Down
Loading

0 comments on commit d3c3aec

Please sign in to comment.