Skip to content

Commit a3dbab2

Browse files
committed
fix(tests): link package in e2e tests
Close angular#194
1 parent ecd2cf1 commit a3dbab2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/e2e/e2e_workflow.spec.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ describe('Basic end-to-end Workflow', function () {
1818
it('Installs angular-cli correctly', function() {
1919
this.timeout(300000);
2020

21+
sh.exec('pwd');
22+
sh.exec('npm link');
2123
return tmp.setup('./tmp')
2224
.then(function () {
2325
process.chdir('./tmp');
24-
25-
sh.exec('npm i angular-cli -g -C ' + process.cwd(), { silent: true });
2626
expect(fs.existsSync(path.join(process.cwd(), 'bin', 'ng')));
2727
});
2828
});
@@ -41,6 +41,9 @@ describe('Basic end-to-end Workflow', function () {
4141

4242
it('Can change current working directory to `test-project`', function() {
4343
process.chdir(path.join(root, 'test-project'));
44+
sh.exec('pwd');
45+
sh.exec('npm link angular-cli');
46+
sh.exec('npm link ../../angular-cli');
4447
expect(path.basename(process.cwd())).to.equal('test-project');
4548
});
4649

0 commit comments

Comments
 (0)