You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To easily track changes in conditionally rendered layouts (with a hard to track conditions that are going on), changes that involve variables and variable scoped pieces of layouts to render, etc.
This PR is a perfect example of a need of snapshot tests. With such functionality it would be much easier to check whether i18n provided via that pr works (translations are placed where they should be placed, there are no typos in translations and so).
What
Unit testing is already on this pr. As it uses Vitest, we should also use part of vitest that includes snapshot testing.
Why
To easily track changes in conditionally rendered layouts (with a hard to track conditions that are going on), changes that involve variables and variable scoped pieces of layouts to render, etc.
This PR is a perfect example of a need of snapshot tests. With such functionality it would be much easier to check whether i18n provided via that pr works (translations are placed where they should be placed, there are no typos in translations and so).
What
Unit testing is already on this pr. As it uses Vitest, we should also use part of vitest that includes snapshot testing.
How
Following this guide.
The text was updated successfully, but these errors were encountered: