4649051843
* add test.config.ts * don't need per file * comment * ts -> js * rm test.config.js? * update snapshots * update jest-styled-components
12 lines
447 B
TypeScript
12 lines
447 B
TypeScript
import '@testing-library/jest-dom' // jest custom assertions
|
|
import 'jest-styled-components' // adds style diffs to snapshot tests
|
|
|
|
import { Readable } from 'stream'
|
|
import { TextDecoder, TextEncoder } from 'util'
|
|
|
|
if (typeof global.TextEncoder === 'undefined') {
|
|
global.ReadableStream = Readable as unknown as typeof globalThis.ReadableStream
|
|
global.TextEncoder = TextEncoder
|
|
global.TextDecoder = TextDecoder as typeof global.TextDecoder
|
|
}
|