December 2017
Beginner
372 pages
10h 32m
English
This is the function where we prepare our data to run the test. In our case, that means initializing the custom sort object and creating a task array, which is passed to the transform function.
The important thing to note about the beforeEach function is that, as the name suggests, this function is called before each of the it functions. This helps in making sure that when we execute multiple test cases, the data from a previous test case does not modify the data for the next test case.
Read now
Unlock full access