How do you test a Jest function?
For creating a Jest test case, we should be using the test() function. This would make use of the test name string along with the handler function in the place of first two arguments. You can also call the test() function as it() .