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): yarn workspace angular v12 example app (the tour of heroes) #1185

Merged
merged 3 commits into from
Dec 4, 2021
Merged

test(unit): yarn workspace angular v12 example app (the tour of heroes) #1185

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 yarn workspace app;
  • reuse sources and tests recently added to the v11 example app;
  • remove sources that are not present in the tour of heroes app;
  • enable strict compiler mode;
  • fix tsconfig - there's no more services dir, map the shared dir instead;
  • remove tslint comments;
  • use mockResolvedValue instead of toPromise;
  • replace the done callback, jest 27 default runner does not have it any more;

Does this PR introduce a breaking change?

  • No

Other information

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

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

rfprod commented Dec 4, 2021

@ahnpnl review please. same source code as for the v11 app but for the v12 yarn workspace.

@rfprod rfprod marked this pull request as draft December 4, 2021 11:13
- [ ] add yarn workspace example app unit tests;
- [x] add the tour of heroes app and specs to the example yarn workspace 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] enable strict compiler mode;
- [x] fix tsconfig - there's no more
services dir, map the shared dir instead;
- [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;
@rfprod rfprod marked this pull request as ready for review December 4, 2021 13:11
@rfprod
Copy link
Contributor Author

rfprod commented Dec 4, 2021

@ahnpnl addressed same issues as in

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 8a690d8 into thymikee:main Dec 4, 2021
@rfprod rfprod deleted the unit-test-yarn-workspace branch December 4, 2021 13:42
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