question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Angular v6

See original GitHub issue

When using this awesome library with Angular v6, it gives:

npm WARN ng-mocks@5.3.0 requires a peer of @angular/core@5.x but none is installed. You must install peer dependencies yourself.
npm WARN ng-mocks@5.3.0 requires a peer of @angular/forms@5.x but none is installed. You must install peer dependencies yourself.

Would be awesome with support for v6.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
alexbjorligcommented, May 15, 2018

The patch release worked - awesome.

Sure - I will give shallow-render a look. Looks really awesome. I honestly think your ng-mocks is so good it should be part of Angular core. If they really mean what they say with “testing matters” 😄

I am not super experienced with directives, but will be happy to take a look at some point.

Thanks again!

1reaction
ike18tcommented, May 15, 2018

OK. I think npm’s semantic versioning did not like 5.x-6.x for a range (for whatever reason). I just cut a patch release. Let me know how it goes.

Thank you for the feedback! It definitely was painful writing unit tests prior to this (for me) with test fixtures getting stale with updates to components that were manually mocked. If you like this lib you may also like https://www.npmjs.com/package/shallow-render which uses ng-mocks under the hood and reduces boilerplate.

Help is always welcome! If you’d like to take a crack at structural directive support that’d be awesome.

Let me know if there is anything I can help you with! I’ll leave this issue open until you confirm that you are good to go.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular versioning and releases
The following table provides the status for Angular versions under support. Version, Status, Released, Active ends, LTS ends. ^15.0.0, Active, 2022-11-18 ...
Read more >
Angular - endoflife.date
Release Released Active Support 15 1 month and 1 week ago. (16 Nov 2022) Ends in 4 months and 3 weeks. (18 M... 14 (...
Read more >
Angular 6 - Project Setup - Tutorialspoint
To install Angular 6, the Angular team came up with Angular CLI which eases the installation. You need to run through a few...
Read more >
Angular 6: Upgrading & Summary of New Features
If your app depends on packages that have a peerDependency to Angular 5 you'll have to wait until the package is updated to...
Read more >
Angular (web framework) - Wikipedia
Angular is a TypeScript-based, free and open-source web application framework led by the Angular Team at Google and by a community of individuals...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found