Deprecated.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _chalk() {
  7. const data = _interopRequireDefault(require('chalk'));
  8. _chalk = function _chalk() {
  9. return data;
  10. };
  11. return data;
  12. }
  13. function _prettyFormat() {
  14. const data = _interopRequireDefault(require('pretty-format'));
  15. _prettyFormat = function _prettyFormat() {
  16. return data;
  17. };
  18. return data;
  19. }
  20. function _interopRequireDefault(obj) {
  21. return obj && obj.__esModule ? obj : {default: obj};
  22. }
  23. /**
  24. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  25. *
  26. * This source code is licensed under the MIT license found in the
  27. * LICENSE file in the root directory of this source tree.
  28. */
  29. const format = value =>
  30. (0, _prettyFormat().default)(value, {
  31. min: true
  32. });
  33. var _default = {
  34. mapCoverage: () => ` Option ${_chalk().default.bold(
  35. '"mapCoverage"'
  36. )} has been removed, as it's no longer necessary.
  37. Please update your configuration.`,
  38. preprocessorIgnorePatterns: (function(_preprocessorIgnorePatterns) {
  39. function preprocessorIgnorePatterns(_x) {
  40. return _preprocessorIgnorePatterns.apply(this, arguments);
  41. }
  42. preprocessorIgnorePatterns.toString = function() {
  43. return _preprocessorIgnorePatterns.toString();
  44. };
  45. return preprocessorIgnorePatterns;
  46. })(
  47. options => ` Option ${_chalk().default.bold(
  48. '"preprocessorIgnorePatterns"'
  49. )} was replaced by ${_chalk().default.bold(
  50. '"transformIgnorePatterns"'
  51. )}, which support multiple preprocessors.
  52. Jest now treats your current configuration as:
  53. {
  54. ${_chalk().default.bold(
  55. '"transformIgnorePatterns"'
  56. )}: ${_chalk().default.bold(format(options.preprocessorIgnorePatterns))}
  57. }
  58. Please update your configuration.`
  59. ),
  60. scriptPreprocessor: (function(_scriptPreprocessor) {
  61. function scriptPreprocessor(_x2) {
  62. return _scriptPreprocessor.apply(this, arguments);
  63. }
  64. scriptPreprocessor.toString = function() {
  65. return _scriptPreprocessor.toString();
  66. };
  67. return scriptPreprocessor;
  68. })(
  69. options => ` Option ${_chalk().default.bold(
  70. '"scriptPreprocessor"'
  71. )} was replaced by ${_chalk().default.bold(
  72. '"transform"'
  73. )}, which support multiple preprocessors.
  74. Jest now treats your current configuration as:
  75. {
  76. ${_chalk().default.bold('"transform"')}: ${_chalk().default.bold(
  77. `{".*": ${format(options.scriptPreprocessor)}}`
  78. )}
  79. }
  80. Please update your configuration.`
  81. ),
  82. setupTestFrameworkScriptFile: (function(_setupTestFrameworkScriptFile) {
  83. function setupTestFrameworkScriptFile(_x3) {
  84. return _setupTestFrameworkScriptFile.apply(this, arguments);
  85. }
  86. setupTestFrameworkScriptFile.toString = function() {
  87. return _setupTestFrameworkScriptFile.toString();
  88. };
  89. return setupTestFrameworkScriptFile;
  90. })(
  91. _options => ` Option ${_chalk().default.bold(
  92. '"setupTestFrameworkScriptFile"'
  93. )} was replaced by configuration ${_chalk().default.bold(
  94. '"setupFilesAfterEnv"'
  95. )}, which supports multiple paths.
  96. Please update your configuration.`
  97. ),
  98. testPathDirs: (function(_testPathDirs) {
  99. function testPathDirs(_x4) {
  100. return _testPathDirs.apply(this, arguments);
  101. }
  102. testPathDirs.toString = function() {
  103. return _testPathDirs.toString();
  104. };
  105. return testPathDirs;
  106. })(
  107. options => ` Option ${_chalk().default.bold(
  108. '"testPathDirs"'
  109. )} was replaced by ${_chalk().default.bold('"roots"')}.
  110. Jest now treats your current configuration as:
  111. {
  112. ${_chalk().default.bold('"roots"')}: ${_chalk().default.bold(
  113. format(options.testPathDirs)
  114. )}
  115. }
  116. Please update your configuration.
  117. `
  118. )
  119. };
  120. exports.default = _default;