/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/dev-middleware/src/__tests__/embedderScriptStub-test.js
29 строк
712 B
Vitali Zaidman
don't require `projectRoot` in devMiddleware (#53921)
24 сен 2025, 22:47
24 сен 2025, 22:47
3a954ca
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ import {requestLocal} from './FetchUtils'; import {withServerForEachTest} from './ServerUtils'; jest.useRealTimers(); jest.setTimeout(10000); describe('embedder script', () => { const serverRef = withServerForEachTest({ logger: undefined, }); test('is always served', async () => { const resp = await requestLocal( serverRef.serverBaseUrl + '/debugger-frontend/embedder-static/embedderScript.js', ); expect(resp.statusCode).toBe(200); }); });