Loading
Current section: Unit Testing 6 exercises
Problem

Creating a Setup File for Test Environment Setup

Loading exercise

Transcript

00:00 I want this everywhere. I want to put this stuff in a place that is automatically included for all of the files in my test, or all my test files in my application. And so we need to move this to a setup file and then update our vTestConfig to automatically require

00:19 or import that file for all of our tests. And so that is your task in this exercise, is to create that setup file. And then we've got a couple other things that we want to think about for that setup file, like what is the environment our code is running in in production? Let's try to simulate that environment as closely as possible in our setup file.

00:39 So that's what you're going to be doing in this exercise. I think you'll have a good time with it. Have fun.