For the first time, it renders the component and automagica y creates a text b ob in a fi e ca ed .snap. > npm run test u Wi update the snapshot @sendi kumarn
Use proper name for the tests. Unit Testing • Use it for presentationa components. • Keep it simp e • Use proper name for the tests. • Treat snapshots as a code. Snapshot Testing • Use it for user facing UI. • Test them for various form-factor / devices / Operating Systems • Use a separate repo if needed. • Run / Test them as a part of dep oyment process. Visua Testing @sendi kumarn