From 11234694d5118bf7dc05abb2bd61a833ee4b4cfa Mon Sep 17 00:00:00 2001 From: AnastasiiaSvietlova Date: Tue, 3 Dec 2024 13:15:49 +0100 Subject: [PATCH] fix import type and test --- packages/core/tests/core.test.ts | 2 +- packages/platforms/browser/tests/on-settle/index.test.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/tests/core.test.ts b/packages/core/tests/core.test.ts index f8a3f7206..518e102ea 100644 --- a/packages/core/tests/core.test.ts +++ b/packages/core/tests/core.test.ts @@ -8,7 +8,7 @@ import type { BackgroundingListener } from '../lib/backgrounding-listener' import { createNoopClient } from '../lib/core' import { DefaultSpanContextStorage } from '../lib/span-context' import { InMemoryPersistence } from '../lib/persistence' -import { AppState } from '../dist/types' +import type { AppState } from '../dist/types' jest.useFakeTimers() diff --git a/packages/platforms/browser/tests/on-settle/index.test.ts b/packages/platforms/browser/tests/on-settle/index.test.ts index e6942a075..e3c270ee8 100644 --- a/packages/platforms/browser/tests/on-settle/index.test.ts +++ b/packages/platforms/browser/tests/on-settle/index.test.ts @@ -433,8 +433,9 @@ describe('createNoopOnSettle', () => { expect(() => { const noopOnSettle = createNoopOnSettle() const spanFactory = new MockSpanFactory() + const setAppState = () => void noopOnSettle(() => {}) - noopOnSettle.configure(createConfiguration(), spanFactory) + noopOnSettle.configure(createConfiguration(), spanFactory, setAppState); }).not.toThrow() }) })