itly-sdk icon indicating copy to clipboard operation
itly-sdk copied to clipboard

How to retrieve identify calls from @itly/plugin-testing?

Open joshje opened this issue 3 years ago • 0 comments

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.

joshje avatar Dec 06 '21 10:12 joshje