0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/integration-tests/jest.setup.js
Gao Sun be373591a9
refactor(ui): use swc for testing (#3726)
* refactor(ui): use swc for testing

* chore: remove unused code
2023-04-20 16:21:21 +00:00

15 lines
379 B
JavaScript

import dotenv from 'dotenv';
import fetch from 'node-fetch';
import { TextDecoder, TextEncoder } from 'text-encoder';
const { jest } = import.meta;
dotenv.config();
/* eslint-disable @silverhand/fp/no-mutation */
global.fetch = fetch;
global.TextDecoder = TextDecoder;
global.TextEncoder = TextEncoder;
/* eslint-enable @silverhand/fp/no-mutation */
jest.setTimeout(15_000);