Skip to content

Commit

Permalink
fix: fix text by mocking quick-lru
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Jan 9, 2025
1 parent d111e1f commit 8d1b934
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { config } from 'dotenv'
import 'jest-styled-components' // include style rules in snapshots
import fetchMock from 'jest-fetch-mock' // Mocks `fetch` calls in unittests
import QuickLRU from 'quick-lru'

import { Readable } from 'stream'
import { TextDecoder, TextEncoder } from 'util'
Expand All @@ -19,3 +20,10 @@ fetchMock.dontMock()
jest.mock('react-markdown', () => () => null)

jest.mock('lottie-react', () => () => null)

jest.mock('quick-lru', () => {
return {
__esModule: true,
default: QuickLRU,
}
})

0 comments on commit 8d1b934

Please sign in to comment.