With the transition to TypeScript and adding testing with Jest, we now need to go through and add test cases for all of our code. Start by creating the folder structure needed for Dashboard.ts. Then create a test file for getDashboard and write sufficient tests to cover the behavior of the function. See example and ChangeForm for examples.
With the transition to TypeScript and adding testing with Jest, we now need to go through and add test cases for all of our code. Start by creating the folder structure needed for
Dashboard.ts
. Then create a test file forgetDashboard
and write sufficient tests to cover the behavior of the function. Seeexample
andChangeForm
for examples.