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

16 lines
379 B
JavaScript
Raw Normal View History

import dotenv from 'dotenv';
2022-12-12 08:15:09 -05:00
import fetch from 'node-fetch';
import { TextDecoder, TextEncoder } from 'text-encoder';
2022-12-12 08:15:09 -05:00
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 */
2022-12-26 06:59:33 -05:00
jest.setTimeout(15_000);