-
Notifications
You must be signed in to change notification settings - Fork 929
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix conflicts after merging master to harmony/main (#2358)
* 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) * bump dev version * 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) * Fix e2e-tests to avoid code execution inside "describe" blocks (#2329) * move all Helper instantiation from describe to before. * fix defaultScope tests, remove code that was entered by mistake in the describe block to before block. * delete javascript-hook.e2e file, the tests there were written long ago, marked as "skip" and not relevant anymore. * support import/require statements of module paths when it has no scope-name (e.g. "@bit/button") (#2331) * resolve part of #2341, enable "--all" flag when "--all-versions" is used and vice versa, to enable re-exporting a component after deleting it (#2345) * Fixed broken link leading to quick start guide (#2338) * fix dynamic dist reference from package.json (#1808) when isolating via capsule (#2348) * remove .only from extension tests Co-authored-by: Erik <[email protected]>
- Loading branch information
1 parent
80987cf
commit a53e20c
Showing
12 changed files
with
314 additions
and
47 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,56 @@ | ||
import chai, { expect } from 'chai'; | ||
import Helper from '../../src/e2e-helper/e2e-helper'; | ||
|
||
chai.use(require('chai-fs')); | ||
|
||
describe('import/require using module paths when no scope is set', function() { | ||
this.timeout(0); | ||
let helper: Helper; | ||
before(() => { | ||
helper = new Helper(); | ||
}); | ||
after(() => { | ||
helper.scopeHelper.destroy(); | ||
}); | ||
describe('basic flow', () => { | ||
before(() => { | ||
helper.scopeHelper.setNewLocalAndRemoteScopes(); | ||
helper.fixtures.populateWorkspaceWithThreeComponentsAndModulePath(false); | ||
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); | ||
}); | ||
// this should work once codemod is implemented | ||
describe.skip('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); | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); |
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.