Creates a new Spy instance for unit tests. A Spy is a
method that takes the place of an existing method and
has additional properties that can be queried to verify
that certain test conditions have been met.
example
import*asexpectfrom'expect'; import { test } from'@paychex/core'; importsomeFactoryMethodfrom'../path/to/test/file';
Provides functionality useful during unit testing.