/
githubmirror
/
react-native
Обзор
Документация
Войти
/
githubmirror
/
react-native
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/jest-preset/jest/MockNativeMethods.js
27 строк
597 B
Phil Pluckthun
Split out Jest preset to `@react-native/jest-preset` (#55169)
18 фев 2026, 20:32
18 фев 2026, 20:32
c4ae055
Код
Авторство
О чём код?
/** * 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 * @format */ const MockNativeMethods = { measure: jest.fn(), measureInWindow: jest.fn(), measureLayout: jest.fn(), setNativeProps: jest.fn(), focus: jest.fn(), blur: jest.fn(), } as { measure: () => void, measureInWindow: () => void, measureLayout: () => void, setNativeProps: () => void, focus: () => void, blur: () => void, }; export default MockNativeMethods;