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

A way to suppress throw new Error via console.warn for example #572

Closed
satanTime opened this issue May 19, 2021 · 2 comments · Fixed by #575 or #585
Closed

A way to suppress throw new Error via console.warn for example #572

satanTime opened this issue May 19, 2021 · 2 comments · Fixed by #575 or #585

Comments

@satanTime
Copy link
Member

Should be done for MockRender for now.

@satanTime
Copy link
Member Author

satanTime commented May 20, 2021

Hi @vinayk406,

could you try this fix: ng-mocks.zip

please add in test.ts:

ngMocks.config({
  onTestBedFlushNeed: 'warn',
});

satanTime added a commit that referenced this issue May 20, 2021
fix(core): a config parameter to suppress MockRender errors #572
@satanTime
Copy link
Member Author

v12.0.1 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant