fix(site): Upload template files on template version editor (#6222)

This commit is contained in:
Bruno Quaresma
2023-02-16 13:59:48 -03:00
committed by GitHub
parent 4c799798c6
commit 909fbb6d2c
10 changed files with 492 additions and 42 deletions
+8
View File
@@ -3,6 +3,14 @@ import { cleanup } from "@testing-library/react"
import crypto from "crypto"
import { server } from "./src/testHelpers/server"
import "jest-location-mock"
import { TextEncoder, TextDecoder } from "util"
import { Blob } from "buffer"
global.TextEncoder = TextEncoder
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Polyfill for jsdom
global.TextDecoder = TextDecoder as any
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Polyfill for jsdom
global.Blob = Blob as any
// Polyfill the getRandomValues that is used on utils/random.ts
Object.defineProperty(global.self, "crypto", {