I'm facing an issue where one of my tests is failing and the log is not providing any useful information, apart from indicating which test failed...
LoginComponent should display username & password error message and not call login when passed nothing FAILED
[object ErrorEvent] thrown
[object ErrorEvent] thrown
Is there a way to track down the root cause of this error?
I tried testing with ng test --source-map=false/true
but it didn't make any difference.
When I ran the test again with --watch to see if I could access the Chrome console for more details, it mentioned that form.reset is not a function
. I commented out that line, yet I continue to see the same error in the log: [object ErrorEvent] thrown
from that same test. However, now the Karma Chrome window does not show the form.reset
error, instead displaying:
Uncaught Error: The requested path contains undefined segment at index 0