Skip to content

Commit a465ad3

Browse files
committed
test: enforce no wildcards
1 parent cf83b75 commit a465ad3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/nuts/tracking/basics.nut.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ describe('end-to-end-test for tracking with an org (single packageDir)', () => {
6464
expect(response.toDeploy.every((row) => row.type && row.fullName)).to.equal(true);
6565
expect(response.conflicts).to.be.an.instanceof(Array).with.length(0);
6666
});
67+
it('includes no wildcard entries', () => {
68+
const response = execCmd<PreviewResult>('deploy metadata preview --metadata ApexClass --json', {
69+
ensureExitCode: 0,
70+
}).jsonOutput?.result;
71+
assert(response);
72+
assert(Array.isArray(response.toDeploy));
73+
// the fields should be populated
74+
expect(response.toDeploy.every((row) => row.fullName !== '*')).to.equal(true);
75+
});
6776
it('pushes the initial metadata to the org', () => {
6877
const resp = execCmd<DeployResultJson>('deploy metadata --json');
6978
expect(resp.jsonOutput?.status, JSON.stringify(resp)).to.equal(0);

0 commit comments

Comments
 (0)