Testing • Types of Tests • What is Jest? • Assertion Library • Test Runner • Writing Meaningful Tests • Testing with Vue • Brand 360 • Show and Tell demo! • Coverage Report
Confidence! Catch bugs before production! • Save time. • Think about possible issues & bugs. • Breaks up complex dependencies. • Integrated into our build work flow.
Smallest piece of code that can be logically isolated in a system • Typically a simple method or function • Fastest • How the units work together • Testing with dependencies, HTTP requests/third parties • Slower than Unit Tests *Indicates that when we test with Jest we are writing Unit and Integration Tests • Tests the user’s journey through the application • Can be a script which executes a certain series of steps • Slowest test
rich assertion library built in to one ✔ Easy to use, you invoke Jest from the command line ✔ Standard and advanced features: mocking dependencies, snapshots, etc. ✔ Works well with most Single Page Application frameworks out there JEST!