Skip to content

fix(tests): use current package in e2e tests #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

filipesilva
Copy link
Contributor

Close #194

@@ -18,11 +18,10 @@ describe('Basic end-to-end Workflow', function () {
it('Installs angular-cli correctly', function() {
this.timeout(300000);

sh.exec('npm link', { silent: true });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to pass in the path to angular-cli?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I got this correctly, tests are always initiated from the root, which is why the setup with tmp dir works.

Although to be perfectly honest I couldn't find what the -C flag in npm install did in the command I removed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I'm pretty sure you need to pass in the path to angular-cli.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm link doesn't seem to take a path to link globally, only to link locally. Is there a missing argument in these docs that you know of?

@hansl
Copy link
Contributor

hansl commented Feb 13, 2016

Thanks! I was about to spend time on this, but if this works then 👍 Lets see what Travis says.

@filipesilva
Copy link
Contributor Author

There's something missing actually, also need to link inside the generated project. sec

@filipesilva
Copy link
Contributor Author

Closing this PR for now, as it it not fixing what is it intended to fix.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

e2e workflow spec should use a linked angular cli
2 participants