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

test(unit): angular v13 example app (the tour of heroes) #1184

Merged
merged 3 commits into from
Dec 4, 2021
Merged

test(unit): angular v13 example app (the tour of heroes) #1184

merged 3 commits into from
Dec 4, 2021

Conversation

rfprod
Copy link
Contributor

@rfprod rfprod commented Nov 18, 2021

Summary

  • add the tour of heroes app and specs to the example angular v13 app;
  • reuse sources and tests recently added to the v11 example app;
  • remove sources that are not present in the tour of heroes app;
  • fix tsconfig - there's no more services dir, map the shared dir instead;
  • adapt testing source code to the v13;
  • remove tslint comments;
  • use mockResolvedValue instead of toPromise;
  • replace the done callback, jest 27 default runner does not have it any more;
  • address rxjs 7 deprecation warnings;

Does this PR introduce a breaking change?

  • No

Other information

  • verify tests workability locally:
yarn test
yarn test-isolated

Omit local verification of yarn test-esm, yarn test-esm-isolated since esm support is not implemented for the v13 yet.

@rfprod rfprod changed the title test(unit): angular v13 example app unit tests test(unit): angular v13 example app unit tests (the tour of heroes) Dec 4, 2021
@rfprod rfprod changed the title test(unit): angular v13 example app unit tests (the tour of heroes) test(unit): angular v13 example app (the tour of heroes) Dec 4, 2021
@rfprod rfprod marked this pull request as ready for review December 4, 2021 10:31
@rfprod
Copy link
Contributor Author

rfprod commented Dec 4, 2021

@ahnpnl review please. same source code as for the v11 app but for the v13 app.

@rfprod rfprod marked this pull request as draft December 4, 2021 11:13
- [ ] add angular v13 example app unit tests;
- [x] add the tour of heroes app and specs to the example angular v13 app;
- [x] reuse sources and
tests recently added to the v11 example app;
- [x] remove sources that are not present in the tour
of heroes app;
- [x] fix tsconfig - there's no more services dir, map the shared dir instead;
-
[x] adapt testing source code to the v13;
- [x] use mockResolvedValue instead of toPromise;
- [X] remove tslint comments;
- [X] remove
unneeded wait for async;
- [x] replace the done callback, jest 27 default runner dones not have it
any more;
- [x] address rxjs 7 deprecations;
@rfprod rfprod marked this pull request as ready for review December 4, 2021 13:33
@rfprod
Copy link
Contributor Author

rfprod commented Dec 4, 2021

@ahnpnl addressed same issues as in

also fixed rxjs 7 deprecation warnings

review please

Copy link
Collaborator

@ahnpnl ahnpnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!!

@ahnpnl ahnpnl merged commit feda30a into thymikee:main Dec 4, 2021
@rfprod rfprod deleted the unit-test-v13 branch December 4, 2021 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants