Skip to content

Commit 4da23c6

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

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ before_install:
1010
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash; fi
1111
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source ~/.nvm/nvm-exec; fi
1212
- nvm install $NODE_VERSION
13-
- npm link npm
1413
- npm config set spin false
1514
install:
1615
- node --version

tests/e2e/e2e_workflow.spec.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ 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('ls -la');
23+
sh.exec('npm link');
2124
return tmp.setup('./tmp')
2225
.then(function () {
2326
process.chdir('./tmp');
24-
25-
sh.exec('npm i angular-cli -g -C ' + process.cwd(), { silent: true });
2627
expect(fs.existsSync(path.join(process.cwd(), 'bin', 'ng')));
2728
});
2829
});
@@ -40,7 +41,12 @@ describe('Basic end-to-end Workflow', function () {
4041
});
4142

4243
it('Can change current working directory to `test-project`', function() {
44+
this.timeout(300000);
4345
process.chdir(path.join(root, 'test-project'));
46+
// sh.exec('pwd');
47+
sh.exec('npm link angular-cli');
48+
// sh.exec('ls -la');
49+
// sh.exec('ls -la node_modules/angular-cli/');
4450
expect(path.basename(process.cwd())).to.equal('test-project');
4551
});
4652

tests/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var Mocha = require('mocha');
44
var glob = require('glob');
55

6-
var root = 'tests/{unit,acceptance,e2e}';
6+
var root = 'tests/e2e';
77
var specFiles = glob.sync(root + '/**/*.spec.js');
88
var mocha = new Mocha({
99
timeout: 5000,

0 commit comments

Comments
 (0)