-
Notifications
You must be signed in to change notification settings - Fork 940
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvement(bit-status): add a new section showing updates from forke…
…d lane (#6575) currently, it always shows the updates from main. however, for forked lanes, the updates from the original lanes are more helpful.
- Loading branch information
1 parent
bca4036
commit 2620b41
Showing
6 changed files
with
152 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import chai, { expect } from 'chai'; | ||
import Helper from '../../../src/e2e-helper/e2e-helper'; | ||
|
||
chai.use(require('chai-fs')); | ||
|
||
describe('lane-b was forked from lane-a and they are now diverged', function () { | ||
this.timeout(0); | ||
let helper: Helper; | ||
before(() => { | ||
helper = new Helper(); | ||
helper.scopeHelper.setNewLocalAndRemoteScopes(); | ||
helper.bitJsonc.setupDefault(); | ||
helper.command.createLane('lane-a'); | ||
helper.fixtures.populateComponents(1, false); | ||
helper.command.snapAllComponentsWithoutBuild(); | ||
helper.command.export(); | ||
helper.command.createLane('lane-b'); | ||
helper.command.snapAllComponentsWithoutBuild('--unmodified'); | ||
helper.command.export(); | ||
helper.command.switchLocalLane('lane-a'); | ||
helper.command.snapAllComponentsWithoutBuild('--unmodified'); | ||
helper.command.export(); | ||
helper.command.switchLocalLane('lane-b'); | ||
}); | ||
it('bit status should have the diverged component in the updatesFromForked section', () => { | ||
const status = helper.command.statusJson(); | ||
expect(status.updatesFromForked).to.have.lengthOf(1); | ||
}); | ||
after(() => { | ||
helper.scopeHelper.destroy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters