Skip to content

Commit

Permalink
test: filter out prm folders
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Oct 17, 2023
1 parent 44752fd commit f361844
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/nuts/trackingCommands/remoteChanges.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,12 @@ describe('remote changes', () => {
});
it('can pull the delete', () => {
const result = execCmd<PullResponse>('force:source:pull --json', { ensureExitCode: 0 }).jsonOutput.result;
// ebikes ignore file doesn't catch this somehow on windows (probably that slash)
// https://github.com/trailheadapps/ebikes-lwc/blob/3e5baf83d97bc71660feaa9922f8fed2e686f5f8/.forceignore#L136-L137
const filteredSource = result.pulledSource.filter((r) => !r.fullName.includes('prm_channel_reports_folder'));
// the 2 files for the apexClass, and possibly one for the Profile (depending on whether it got created in time)
expect(result.pulledSource, JSON.stringify(result)).to.have.length.greaterThanOrEqual(2);
expect(result.pulledSource, JSON.stringify(result)).to.have.length.lessThanOrEqual(4);
expect(filteredSource).to.have.length.greaterThanOrEqual(2);
expect(filteredSource).to.have.length.lessThanOrEqual(4);
result.pulledSource
.filter((r) => r.fullName === 'TestOrderController')
.map((r) => expect(r.state).to.equal('Deleted'));
Expand Down

0 comments on commit f361844

Please sign in to comment.