/
githubmirror
/
ydb-embedded-ui
Обзор
Документация
Войти
/
githubmirror
/
ydb-embedded-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/setupTests.js
21 строка
704 B
Anton Standrik
feat: support multipart responses in query (#1865)
19 фев 2025, 14:24
Не верифицирован
19 фев 2025, 14:24
99ee997
Код
Авторство
О чём код?
/* eslint-disable import/order, no-undef */ // jest-dom adds custom jest matchers for asserting on DOM nodes. // allows you to do things like: // expect(element).toHaveTextContent(/react/i) // learn more: https://github.com/testing-library/jest-dom import '@testing-library/jest-dom'; import {configure as configureUiKit} from '@gravity-ui/uikit'; import {Lang, i18n} from '../src/utils/i18n'; i18n.setLang(Lang.En); configureUiKit({lang: Lang.En}); // only to prevent warnings from history lib // all api calls in tests should be mocked window.custom_backend = '/'; // Mock multipart-parser globally for all tests jest.mock('@mjackson/multipart-parser', () => ({ parseMultipart: jest.fn(), }));