itly-sdk
itly-sdk copied to clipboard
How to retrieve identify calls from @itly/plugin-testing?
We use @itly/plugin-testing
for our test suites, and this works well for any events (track
) that are made, where we can call itlyTestPlugin.all()
to retrieve them.
However we want to check that an itly.identify
call was made with the right user traits, and those don't seem to be available within our test suite.
I discovered that by calling the private function itlyTestPlugin.safelyGetCalls('identify')
I was able to retrieve these events successfully, but I would like to see an equivalent public function exposed.