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 v12 example app (the tour of heroes) #1183

Merged
merged 6 commits into from
Dec 4, 2021
Merged

test(unit): angular v12 example app (the tour of heroes) #1183

merged 6 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 v12 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): angular v12 example app unit tests test(unit): angular v12 example app unit tests (the tour of heroes) Dec 4, 2021
@rfprod rfprod marked this pull request as ready for review December 4, 2021 09:13
@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 app.

@rfprod rfprod changed the title test(unit): angular v12 example app unit tests (the tour of heroes) test(unit): angular v12 example app (the tour of heroes) Dec 4, 2021
@rfprod
Copy link
Contributor Author

rfprod commented Dec 4, 2021

@ahnpnl will update the PR soon. I'll update other open PRs accordingly

- [ ] add angular v12 example app unit tests;
- [x] add the tour of heroes app and specs to the example angular v12 app;
- [x] reuse sources
tests recently added to the v11 example app;
- [x] remove source that are not present in the tour
of heroes app;
- [X] fix tsconfig - there's no more services dir, map shared instead;
- [X] remove tslint comments;
- [X] don't import defitinions from jest/types/* directly;
- [x] don't import definitions from jest/types;
- [x] use mockResolvedValue instead of toPromise;
- [X] remove unneeded wait for async;
@rfprod rfprod requested a review from ahnpnl December 4, 2021 11:46
@rfprod
Copy link
Contributor Author

rfprod commented Dec 4, 2021

@ahnpnl all done, check again please.

- [x] replace the done callback, jest 27 default runner dones not have it any more;
@rfprod rfprod requested a review from ahnpnl December 4, 2021 12:36
@ahnpnl ahnpnl merged commit d8b8311 into thymikee:main Dec 4, 2021
@ahnpnl
Copy link
Collaborator

ahnpnl commented Dec 4, 2021

Thanks!!

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