Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Adding 'ngMock' as a dependency module removes my partial view #12137

Closed
Shawful opened this issue Jun 16, 2015 · 2 comments
Closed

Adding 'ngMock' as a dependency module removes my partial view #12137

Shawful opened this issue Jun 16, 2015 · 2 comments

Comments

@Shawful
Copy link

Shawful commented Jun 16, 2015

Hello,

I'm not sure if my problem has to do with versioning or documentation.

I'm using angular 1.2.28 and my team has not yet moved to 1.3.

When I include 'ngMock' among my app's dependencies, the main page content is blank. When I remove 'ngMock', the page content is shown. Any idea what would cause this?

I'm just trying to set up unit tests and eventually set up protractor for e2e tests, but am just having some trouble.

Any help is appreciated!

Shawn

@Shawful Shawful changed the title Adding 'ngMock' as a dependency module removes my partial Adding 'ngMock' as a dependency module removes my partial view Jun 16, 2015
@Narretz
Copy link
Contributor

Narretz commented Jun 16, 2015

You are not really supposed to add ngMock as a dependency for your real site. It's used to make mocking of certain services easier in unit tests and should only be used there. For e2e tests, you would probably test against a real backend, or mock it on a different level from angular.

@Shawful
Copy link
Author

Shawful commented Jun 16, 2015

That makes obvious sense. Thanks. I only list my app's dependencies in my app.js file (using yeoman), so I was confused.

@Narretz Narretz closed this as completed Jun 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants