how make angular developer life easier?
Present tests are good? What can be improved?
Pros and cons, what we can get if we will change how we write tests?
Some tests write in new conventions.
Can be better?
Tests with Jest can be even more friendly for a developer.
In unit teasting, we should test only one entity, actualy sometimes we test many in the same time. What is typical for integration tests.
Tests are not separate
If we want to test complex components, we must spend a lot of time at creating a test module. If we want to do this correctly, It will become even more difficult.
Testing in Angular is hard
Errors should inform exactly what went wrong and whether the test failed or we messed syntax.
Errors are unhelpful
In configuration from Angular documentation, we do not have a few tools which are provided in newer solutions and can make our life easier.
Missing tools and features
Snapshots are very useful when you need to test how to a component are rendered.
Better module mocking
Easy and powerful module mocking which can make tests more lightweight.
Jest has a clever parallel testing mechanism, quite nice watch mode, do not have to be bootstrapped and build the app.
The migration process can be more or less complicated in a complex project and might need more effort.
Jest - more
Let's go testing
Do you have any questions?
WE WILL SEE SOME EXAMPLES
Live coding is stressful, thanks for understanding.