mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -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);
|