2022-06-14 22:40:52 +03:00
|
|
|
import '@testing-library/jest-dom' // jest custom assertions
|
2022-07-20 22:27:40 +03:00
|
|
|
import 'jest-styled-components' // adds style diffs to snapshot tests
|
2022-06-09 21:39:38 +03:00
|
|
|
|
2022-06-14 22:40:52 +03:00
|
|
|
import { Readable } from 'stream'
|
2022-06-09 21:39:38 +03:00
|
|
|
import { TextDecoder, TextEncoder } from 'util'
|
|
|
|
|
|
|
|
if (typeof global.TextEncoder === 'undefined') {
|
2022-06-14 22:40:52 +03:00
|
|
|
global.ReadableStream = Readable as unknown as typeof globalThis.ReadableStream
|
2022-06-09 21:39:38 +03:00
|
|
|
global.TextEncoder = TextEncoder
|
|
|
|
global.TextDecoder = TextDecoder as typeof global.TextDecoder
|
|
|
|
}
|