Support Angular v6
See original GitHub issueWhen 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:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!
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.