-
-
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
Schematics: Use MockStore in container generated tests #2029
Schematics: Use MockStore in container generated tests #2029
Conversation
…e using MockStore
… file using MockStore
Preview docs changes for 68facda at https://previews.ngrx.io/pr2029-68facda/ |
...src/container/files/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template
Outdated
Show resolved
Hide resolved
Preview docs changes for 689fc93 at https://previews.ngrx.io/pr2029-689fc93/ |
What do you think about providing an option to generate an integration test vs a unit test instead of replacing it? |
I’m up for it. Should we use two separate options? |
👍 |
Preview docs changes for 896899c at https://previews.ngrx.io/pr2029-896899c/ |
@brandonroberts Added the |
Preview docs changes for b696b66 at https://previews.ngrx.io/pr2029-b696b66/ |
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.
@jtcrowson seems like a test is failing, could you have a look?
Besides this it LGTM 👍
@brandonroberts just curious, why lowercase for the enums? Looks like angular uses uppercase for enums that are words. 🔗https://angular.io/cli/generate |
For the values? The key is |
I see it now. Its a mix. I'd rather keep the consistent with lowercase for the values. |
@jtcrowson will you check the failing unit tests? |
Preview docs changes for b088215 at https://previews.ngrx.io/pr2029-b088215/ |
@brandonroberts sorry for the delay, I've been busy with Angular Denver stuff. I update the integration/unit casing and made integration the default. I'm having trouble debugging the test failures since I can't get |
No problem. I'll take a look at the test failures. |
Preview docs changes for d713cbe at https://previews.ngrx.io/pr2029-d713cbe/ |
@brandonroberts thanks for d713cbe, makes sense why it was passing with jasmine locally but not with bazel. |
Yep, its weird that it just fails silently also, and doesn't generate the files if it doesn't find the path. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Closes #2028
What is the new behavior?
testDepth
option to use StoreModule for integration tests instead.Does this PR introduce a breaking change?