Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: pass cli to execCmd, don't use tracking for NUT orgs #761

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading