mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
be373591a9
* refactor(ui): use swc for testing * chore: remove unused code
15 lines
379 B
JavaScript
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);
|