Skip to content

Commit 430e07a

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/e2e/e2e_workflow.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ describe('Basic end-to-end Workflow', function () {
2121
return tmp.setup('./tmp')
2222
.then(function () {
2323
process.chdir('./tmp');
24-
25-
sh.exec('npm i angular-cli -g -C ' + process.cwd(), { silent: true });
2624
expect(fs.existsSync(path.join(process.cwd(), 'bin', 'ng')));
2725
});
2826
});
@@ -41,6 +39,7 @@ describe('Basic end-to-end Workflow', function () {
4139

4240
it('Can change current working directory to `test-project`', function() {
4341
process.chdir(path.join(root, 'test-project'));
42+
sh.exec('$(npm bin -g)/npm link ../../angular-cli');
4443
expect(path.basename(process.cwd())).to.equal('test-project');
4544
});
4645

0 commit comments

Comments
 (0)