mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-09 12:57:45 +00:00
Update content/blog/writing-better-angular-tests/index.md
Co-authored-by: Corbin Crutchley <crutchcorn@gmail.com>
This commit is contained in:
@@ -54,7 +54,7 @@ Writing tests that don't rely on testing Angular, but instead rely on the DOM, a
|
||||
|
||||
# Fixing that shortcoming using Testing Library
|
||||
|
||||
Thankfully writing tests like these have been made simple by a testing library simply called [Testing Library](https://testing-library.com) and it has an [Angular Testing Library](https://testing-library.com/docs/angular-testing-library/intro) that can be used to test Angular apps in the simple DOM focused manner with some nice helpers to make it even easier to work with. It relies on [Jest](https://jestjs.io/) as an extension to the Jasmine testing framework to make testing easier and more end results focused. With that tooling a project can have tests much less focused on Angular and much more focused on what is being made.
|
||||
Thankfully, writing tests like these have been made simple by a testing library simply called "[Testing Library](https://testing-library.com)." Testing Library is a collection of libraries for various frameworks and applications. One of the supported libraries is Angular, through the [Angular Testing Library](https://testing-library.com/docs/angular-testing-library/intro). This can be used to test Angular apps in a simple DOM focused manner with some nice helpers to make it even easier to work with. It relies on [Jest](https://jestjs.io/) as an extension to the Jasmine testing framework to make testing easier, and more end-results focused. With that tooling, a project can have tests much less focused on Angular and much more focused on what is being made.
|
||||
|
||||
## Transitioning to Jest and Angular Testing Library
|
||||
|
||||
|
||||
Reference in New Issue
Block a user