constants.js 967 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. /**
  6. * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  7. *
  8. * This source code is licensed under the MIT license found in the
  9. * LICENSE file in the root directory of this source tree.
  10. *
  11. *
  12. */
  13. /* eslint-disable sort-keys */
  14. /*
  15. * This file exports a set of constants that are used for Jest's haste map
  16. * serialization. On very large repositories, the haste map cache becomes very
  17. * large to the point where it is the largest overhead in starting up Jest.
  18. *
  19. * This constant key map allows to keep the map smaller without having to build
  20. * a custom serialization library.
  21. */
  22. exports.default = {
  23. /* file map attributes */
  24. ID: 0,
  25. MTIME: 1,
  26. VISITED: 2,
  27. DEPENDENCIES: 3,
  28. SHA1: 4,
  29. /* module map attributes */
  30. PATH: 0,
  31. TYPE: 1,
  32. /* module types */
  33. MODULE: 0,
  34. PACKAGE: 1,
  35. /* platforms */
  36. GENERIC_PLATFORM: 'g',
  37. NATIVE_PLATFORM: 'native'
  38. };