MockNativeMethods.js 435 B

123456789101112131415161718192021
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. */
  9. 'use strict';
  10. const MockNativeMethods = {
  11. measure: jest.fn(),
  12. measureInWindow: jest.fn(),
  13. measureLayout: jest.fn(),
  14. setNativeProps: jest.fn(),
  15. focus: jest.fn(),
  16. blur: jest.fn(),
  17. };
  18. module.exports = MockNativeMethods;