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