diff --git a/test/nuts/trackingCommands/remoteChanges.nut.ts b/test/nuts/trackingCommands/remoteChanges.nut.ts index 8ac0817de..a5ff438e8 100644 --- a/test/nuts/trackingCommands/remoteChanges.nut.ts +++ b/test/nuts/trackingCommands/remoteChanges.nut.ts @@ -106,9 +106,12 @@ describe('remote changes', () => { }); it('can pull the delete', () => { const result = execCmd('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'));