Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix #2211 and #2308, when exporting to multiple scopes, make sure to not export their dependencies when these dependencies themselves are not export pending (#2309) * resolve #2268, prevent logger from holding the terminal once a command is completed by adding an error handler. Also, changed some "logger.debug" to "logger.silly". Also, support configuring the logger level by running "bit config set log_level <level>". Also, limit the number of concurrent files write to 100 (#2310) * fix typo in the BitId README * fix "bit status" and "bit tag" when new components require each other by module paths (#2313) Co-authored-by: David First <david@bit.dev>
- Loading branch information
1 parent
d6227d8
commit c0ff1e3
Showing
28 changed files
with
352 additions
and
66 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import chai, { expect } from 'chai'; | ||
import Helper from '../../src/e2e-helper/e2e-helper'; | ||
|
||
chai.use(require('chai-fs')); | ||
|
||
describe('default scope functionality', function() { | ||
this.timeout(0); | ||
const helper = new Helper(); | ||
after(() => { | ||
helper.scopeHelper.destroy(); | ||
}); | ||
describe('basic flow', () => { | ||
helper.scopeHelper.setNewLocalAndRemoteScopes(); | ||
helper.fixtures.populateWorkspaceWithThreeComponentsAndModulePath(); | ||
helper.bitJson.addDefaultScope(); | ||
helper.command.runCmd('bit link'); | ||
}); | ||
it('bit status should not break', () => { | ||
const status = helper.command.statusJson(); | ||
expect(status.newComponents).have.lengthOf(3); | ||
expect(status.invalidComponents).have.lengthOf(0); | ||
}); | ||
describe('tagging the components', () => { | ||
let tagOutput; | ||
before(() => { | ||
tagOutput = helper.command.tagAllComponents(); | ||
}); | ||
it('should be able to to tag them successfully', () => { | ||
expect(tagOutput).to.have.string('tagged'); | ||
}); | ||
it('bit status should not show any issue', () => { | ||
const status = helper.command.statusJson(); | ||
expect(status.stagedComponents).have.lengthOf(3); | ||
expect(status.newComponents).have.lengthOf(0); | ||
expect(status.modifiedComponent).have.lengthOf(0); | ||
expect(status.invalidComponents).have.lengthOf(0); | ||
}); | ||
describe('exporting the components', () => { | ||
before(() => { | ||
helper.command.exportAllComponents(); | ||
}); | ||
it('should be able to export them all successfully', () => { | ||
const status = helper.command.statusJson(); | ||
expect(status.stagedComponents).have.lengthOf(0); | ||
expect(status.newComponents).have.lengthOf(0); | ||
expect(status.modifiedComponent).have.lengthOf(0); | ||
expect(status.invalidComponents).have.lengthOf(0); | ||
}); | ||
}); | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.