mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 16:28:31 +00:00
12 lines
239 B
JavaScript
12 lines
239 B
JavaScript
import { vi } from 'vitest'
|
|
|
|
const posthog = { capture: vi.fn() }
|
|
|
|
export const providePosthog = (nuxtApp) => {
|
|
if (!('$posthog' in nuxtApp)) {
|
|
nuxtApp.provide('posthog', posthog)
|
|
}
|
|
posthog.capture.mockClear()
|
|
return posthog
|
|
}
|