2022-07-26 21:09:13 -05:00
|
|
|
import dotenv from 'dotenv';
|
2023-07-21 01:12:01 -05:00
|
|
|
import { setDefaultOptions } from 'expect-puppeteer';
|
2022-06-16 00:00:01 -05:00
|
|
|
|
2022-12-12 08:15:09 -05:00
|
|
|
const { jest } = import.meta;
|
2022-06-16 00:00:01 -05:00
|
|
|
|
2022-07-26 21:09:13 -05:00
|
|
|
dotenv.config();
|
|
|
|
|
2022-06-16 00:00:01 -05:00
|
|
|
/* eslint-disable @silverhand/fp/no-mutation */
|
2024-03-29 05:10:13 -05:00
|
|
|
global.fail = (message) => {
|
|
|
|
throw new Error(message);
|
|
|
|
};
|
|
|
|
|
2022-06-16 00:00:01 -05:00
|
|
|
/* eslint-enable @silverhand/fp/no-mutation */
|
2022-09-02 04:20:09 -05:00
|
|
|
|
2023-07-21 01:12:01 -05:00
|
|
|
// GitHub Actions default runners need more time for UI tests
|
|
|
|
jest.setTimeout(60_000);
|
|
|
|
setDefaultOptions({ timeout: 5000 });
|