constants.js 956 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. /* module map attributes */
  29. PATH: 0,
  30. TYPE: 1,
  31. /* module types */
  32. MODULE: 0,
  33. PACKAGE: 1,
  34. /* platforms */
  35. GENERIC_PLATFORM: 'g',
  36. NATIVE_PLATFORM: 'native'
  37. };