-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
No logs about empty state for tests with mocked store #2420
Conversation
Preview docs changes for 5c9bd12 at https://previews.ngrx.io/pr2420-5c9bd12/ |
@evgenyfedorenko thanks. Tests would be nice as well 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests
Was hoping this one will go unnoticed haha, jk. |
@@ -14,6 +14,7 @@ export { | |||
export { createAction, props, union } from './action_creator'; | |||
export { Store, select } from './store'; | |||
export { combineReducers, compose, createReducerFactory } from './utils'; | |||
export { setNgrxMockEnvironment, isNgrxMockEnvironment } from './flags'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose not, but is there a way to make the setNgrxMockEnvironment
private?
This, to prevent the usage of it to disable the warning.
These checks are enabled by default in NgRx 9
* fix(component): add docs overview closes ngrx#2442 * Update projects/ngrx.io/content/guide/component/index.md Co-Authored-By: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Co-authored-by: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com>
@evgenyfedorenko What's the status on this? The PR needs to be rebased on master, and we still need some tests |
Will try to take a look this week. |
…ko/platform into mockstore-logsless
Added few tests. |
@evgenyfedorenko I don't think it will be possible, it was an open question to ask if someone knew a way to do this. |
Something happened to the commits with the merge |
Not sure what happened, should I recreate my changes on a new branch checked out from master? |
@evgenyfedorenko I think it should resolve itself if you rebase from master, but feel free to create a new branch if that's faster. |
here is another PR with clean merge #2513 |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
This code adds an internal setting and a setter for mock store environment.
When set it suppresses the logs about the state which does not exist.
What is the current behavior?
Console warn logs numerous logs for mocked store which should not happen
Closes #2363
What is the new behavior?
Logs will be suppressed
Does this PR introduce a breaking change?
Other information
Please take a look at this draft. I made some assumptions here which may not be true. Please comment.