What is the primary use of "spy" functions in Jasmine?

  • To generate random data for testing
  • To log console output
  • To monitor and track function calls
  • To suppress error messages during tests
The primary use of "spy" functions in Jasmine is to monitor and track function calls during tests, enabling you to check how functions are called and with what arguments.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *