Repository navigation
test(docs-infra): add missing tests for observables and promises - #34537
sonukapoor wants to merge 3 commits into
Conversation
|
Marking this as blocked on #34327, since it builds on top of that. |
3eb2e21 to
583ad7f
Compare
583ad7f to
aa9a17b
Compare
gkalpak
left a comment
There was a problem hiding this comment.
Thx, @sonukapoor ❤️
I've left some comments. Also, the current commit message ("tests for observables and promises") is too generic. Can you, please, change it to be more specific. E.g. something like:
test(docs-infra): add tests for `comparing-observables` example
|
I, also, just realized that we need to make sure the tests are run on CI (currently they are not afaict) 😁 |
gkalpak
left a comment
There was a problem hiding this comment.
Just few more (minor) comments to go 😃
Also, as mentioned in #34537 (comment), we need to run these tests on CI. This is similar to what you did for other Observables-related examples in #34063. I.e. you need to:
- Add a dummy
e2e/src/app.e2e-spec.ts(e.g. similar to observables/e2e/src/app.e2e-spec.ts). - Add an appropriate
example-config.json(e.g. similar to observables/example-config.json but specifying a different command that actually runs the unit tests).
Yes, I haven't gotten to that yet. I wanted to make sure that we are happy with the codebase now. I should be able to look into the testing from CI next. |
f450f03 to
d902c0d
Compare
232d2e0 to
a5231d7
Compare
|
You can preview a5231d7 at https://pr34537-a5231d7.ngbuilds.io/. |
|
You can preview d2bd1cc at https://pr34537-d2bd1cc.ngbuilds.io/. |
d2bd1cc to
98a1e73
Compare
490eec2 to
9f71b16
Compare
|
You can preview 23959b7 at https://pr34537-23959b7.ngbuilds.io/. |
gkalpak
left a comment
There was a problem hiding this comment.
The tests look fine (with some minor comments). Thx for sorting this out.
I am not a big fan of the current setup. I'll look into whether it is possible to simplify it a bit.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@sonukapoor, I rebased on latest master and pushed a fixup commit that simplifies the setup: 6579810 BTW, I believe all changes belong to a single commit. Having one commit to add the tests and another one to run them doesn't make sense imo. |
|
You can preview 9683390 at https://pr34537-9683390.ngbuilds.io/. |
Thanks @gkalpak - I have addressed the additional changes. I created the additional commit to separate between the setup to run the tests and to create the tests itself. I think they are both two different things. I can squash everything together if that is preferred. |
|
You can preview 470cef8 at https://pr34537-470cef8.ngbuilds.io/. |
|
You can preview 82d200a at https://pr34537-82d200a.ngbuilds.io/. |
|
You can preview d84dcc1 at https://pr34537-d84dcc1.ngbuilds.io/. |
|
You can preview d4da011 at https://pr34537-d4da011.ngbuilds.io/. |
|
You can preview 157a0f8 at https://pr34537-157a0f8.ngbuilds.io/. |
gkalpak
left a comment
There was a problem hiding this comment.
The changes lgtm. Thx for the patience while we were figuring things out, @sonukapoor 😁 💯
One last thing:
The docs(docs-infra) commit message looks wrong. It should either be squashed into the first commit or it should be a test(docs-infra) commit.
No worries @gkalpak
I have changed this squashed them. Please review one last time. Thanks |
|
You can preview f3bd82e at https://pr34537-f3bd82e.ngbuilds.io/. |
|
You can preview c265a4f at https://pr34537-c265a4f.ngbuilds.io/. |
This commit adds missing tests for obserables and promises which are both stand-alone mini-apps.
This commit adds the necessary custom commands to run the tests in a node environment.
|
You can preview e25f686 at https://pr34537-e25f686.ngbuilds.io/. |
|
You can preview ec9406f at https://pr34537-ec9406f.ngbuilds.io/. |
gkalpak
left a comment
There was a problem hiding this comment.
Nice job, @sonukapoor! Thx 👍
Reviewed-for: global-docs-approvers
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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?
Issue Number: #34398
Does this PR introduce a breaking change?