Testing in Node #7 - Testing with a Database (Part 2)

By Sam Landfried on Feb 04, 2019


About

Creating database entities for tests quickly becomes unmanageable as data models become more complex. Factory Girl allows us to quickly create records in our database that easily grow with our application. In this screencast, you’ll learn how to use Factory Girl to create maintainable tests that are easy to grow with your data model.

After this screencast, you'll be able to:

- Define database model factories with Factory Girl.
- Quickly create individual or multiple models in the database using Factory Girl.
- Use Factory Girl to clean up test records added to the database.

Familiarity with Node.js, testing fundamentals, and package managers (npm or yarn) is recommended.

For the More Curious...

BNR Guide to Front-End Web Development
Full Stack Courses

Transcript

Transcripts are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Downloads

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Comments