mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
17 lines
415 B
JavaScript
17 lines
415 B
JavaScript
import dotenv from 'dotenv';
|
|
import { setDefaultOptions } from 'expect-puppeteer';
|
|
|
|
const { jest } = import.meta;
|
|
|
|
dotenv.config();
|
|
|
|
/* eslint-disable @silverhand/fp/no-mutation */
|
|
global.fail = (message) => {
|
|
throw new Error(message);
|
|
};
|
|
|
|
/* eslint-enable @silverhand/fp/no-mutation */
|
|
|
|
// GitHub Actions default runners need more time for UI tests
|
|
jest.setTimeout(60_000);
|
|
setDefaultOptions({ timeout: 5000 });
|