Skip to content

Commit dacaa49

Browse files
committed
single q
1 parent 0804dd1 commit dacaa49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/browser/src/__tests__/deferred-init-extensions.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { createPosthogInstance } from './helpers/posthog-instance'
22
import { uuidv7 } from '../uuidv7'
33
import { RemoteConfig } from '../types'
4+
import { scheduler } from '../utils/scheduler'
45

56
jest.mock('../utils/globals', () => {
67
const orig = jest.requireActual('../utils/globals')
@@ -39,6 +40,7 @@ describe('deferred extension initialization', () => {
3940
console.error = jest.fn()
4041
mockReferrerGetter.mockReturnValue('https://referrer.com')
4142
mockURLGetter.mockReturnValue('https://example.com')
43+
scheduler._reset()
4244
})
4345

4446
describe('race condition handling', () => {

0 commit comments

Comments
 (0)