Skip to content

Commit 14e86cd

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

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ before_install:
1111
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source ~/.nvm/nvm-exec; fi
1212
- nvm install $NODE_VERSION
1313
- npm link npm
14+
- npm link node
1415
- npm config set spin false
1516
install:
1617
- node --version

tests/e2e/e2e_workflow.spec.js

Lines changed: 2 additions & 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,8 @@ 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('pwd');
43+
sh.exec('npm link ../../angular-cli');
4444
expect(path.basename(process.cwd())).to.equal('test-project');
4545
});
4646

0 commit comments

Comments
 (0)