"fix" decoder

This commit is contained in:
Ulf Gebhardt 2023-06-13 14:22:25 +02:00
parent 73d0cc4a1c
commit 3f7f3c2651
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -2,7 +2,7 @@
// https://stackoverflow.com/questions/68468203/why-am-i-getting-textencoder-is-not-defined-in-jest
import { TextEncoder, TextDecoder } from 'util'
global.TextEncoder = TextEncoder
global.TextDecoder = TextDecoder
global.TextDecoder = TextDecoder as any
// Metascraper takes longer nowadays, double time
jest.setTimeout(10000)