Skip to content

Commit

Permalink
fix import type and test
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaSvietlova committed Dec 3, 2024
1 parent 7bd8e81 commit 1123469
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/tests/core.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
3 changes: 2 additions & 1 deletion packages/platforms/browser/tests/on-settle/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,9 @@ describe('createNoopOnSettle', () => {
expect(() => {
const noopOnSettle = createNoopOnSettle()
const spanFactory = new MockSpanFactory()
const setAppState = () => void

Check failure on line 436 in packages/platforms/browser/tests/on-settle/index.test.ts

View workflow job for this annotation

GitHub Actions / linting

Expected 'undefined' and instead saw 'void'
noopOnSettle(() => {})
noopOnSettle.configure(createConfiguration(), spanFactory)
noopOnSettle.configure(createConfiguration(), spanFactory, setAppState);
}).not.toThrow()
})
})

0 comments on commit 1123469

Please sign in to comment.