Skip to content
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

Add support to inject a library-related service mocker #87

Closed
satanTime opened this issue Feb 26, 2020 · 0 comments · Fixed by #100
Closed

Add support to inject a library-related service mocker #87

satanTime opened this issue Feb 26, 2020 · 0 comments · Fixed by #100
Assignees
Labels
enhancement New feature or request

Comments

@satanTime
Copy link
Member

satanTime commented Feb 26, 2020

The idea is to provide support ts-mockery as peerDependency and to allow user to mock everything ng-mocks mock with a specified library.

For example adding in a setup script of karma or testing framework

import 'ng-mocks/mockery/jasmine';

or

import 'ng-mocks/mockery/jest';

and in that case we use specified library to mock methods instead of setting () => {} everywhere.

@satanTime satanTime self-assigned this Mar 28, 2020
@satanTime satanTime added the enhancement New feature or request label Mar 28, 2020
satanTime referenced this issue in satanTime/ng-mocks Apr 6, 2020
satanTime referenced this issue in satanTime/ng-mocks Apr 17, 2020
satanTime referenced this issue in satanTime/ng-mocks Apr 26, 2020
satanTime referenced this issue in satanTime/ng-mocks Apr 26, 2020
satanTime referenced this issue in satanTime/ng-mocks Apr 26, 2020
satanTime referenced this issue in satanTime/ng-mocks Apr 26, 2020
satanTime referenced this issue in satanTime/ng-mocks Apr 26, 2020
satanTime referenced this issue in satanTime/ng-mocks Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant