Skip to content

Commit cbf59c6

Browse files
committed
fix(tests): use current package in e2e tests
1 parent ecd2cf1 commit cbf59c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/e2e_workflow.spec.js

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

21+
sh.exec('npm link', { silent: true });
2122
return tmp.setup('./tmp')
2223
.then(function () {
2324
process.chdir('./tmp');
24-
25-
sh.exec('npm i angular-cli -g -C ' + process.cwd(), { silent: true });
2625
expect(fs.existsSync(path.join(process.cwd(), 'bin', 'ng')));
2726
});
2827
});
@@ -41,6 +40,7 @@ describe('Basic end-to-end Workflow', function () {
4140

4241
it('Can change current working directory to `test-project`', function() {
4342
process.chdir(path.join(root, 'test-project'));
43+
sh.exec('npm link angular-cli', { silent: true });
4444
expect(path.basename(process.cwd())).to.equal('test-project');
4545
});
4646

0 commit comments

Comments
 (0)