0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/integration-tests/jest.setup.js
Gao Sun 4c9aef827b
refactor(console): use global router (#4191)
* refactor(console): use global router

* refactor(console): clean swr cache when switching tenant

* refactor(console): bug fix

* chore(test): increase integration test timeout

* refactor: update packages/console/src/App.tsx

Co-authored-by: Charles Zhao <charleszhao@silverhand.io>

---------

Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
2023-07-21 06:12:01 +00:00

18 lines
533 B
JavaScript

import dotenv from 'dotenv';
import { setDefaultOptions } from 'expect-puppeteer';
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 */
// GitHub Actions default runners need more time for UI tests
jest.setTimeout(60_000);
setDefaultOptions({ timeout: 5000 });