configuration.d.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. import { DisplayProcessor } from "./display-processor";
  2. export declare class Configuration {
  3. suite?: {
  4. /**
  5. * display each suite number (hierarchical)
  6. */
  7. displayNumber?: boolean;
  8. };
  9. spec?: {
  10. /**
  11. * display error messages for each failed assertion
  12. */
  13. displayErrorMessages?: boolean;
  14. /**
  15. * display stacktrace for each failed assertion
  16. */
  17. displayStacktrace?: boolean;
  18. /**
  19. * display each successful spec
  20. */
  21. displaySuccessful?: boolean;
  22. /**
  23. * display each failed spec
  24. */
  25. displayFailed?: boolean;
  26. /**
  27. * display each pending spec
  28. */
  29. displayPending?: boolean;
  30. /**
  31. * display each spec duration
  32. */
  33. displayDuration?: boolean;
  34. };
  35. summary?: {
  36. /**
  37. * display error messages for each failed assertion
  38. */
  39. displayErrorMessages?: boolean;
  40. /**
  41. * display stacktrace for each failed assertion
  42. */
  43. displayStacktrace?: boolean;
  44. /**
  45. * display summary of all successes after execution
  46. */
  47. displaySuccessful?: boolean;
  48. /**
  49. * display summary of all failures after execution
  50. */
  51. displayFailed?: boolean;
  52. /**
  53. * display summary of all pending specs after execution
  54. */
  55. displayPending?: boolean;
  56. /**
  57. * display execution duration
  58. */
  59. displayDuration?: boolean;
  60. };
  61. /**
  62. * Colors are displayed in the console via colors package: https://github.com/Marak/colors.js.
  63. * You can see all available colors on the project page.
  64. */
  65. colors?: {
  66. /**
  67. * enable colors
  68. */
  69. enabled?: boolean;
  70. /**
  71. * color for successful spec
  72. */
  73. successful?: string;
  74. /**
  75. * color for failing spec
  76. */
  77. failed?: string;
  78. /**
  79. * color for pending spec
  80. */
  81. pending?: string;
  82. };
  83. prefixes?: {
  84. /**
  85. * prefix for successful spec
  86. */
  87. successful?: string;
  88. /**
  89. * prefix for failing spec
  90. */
  91. failed?: string;
  92. /**
  93. * prefix for pending spec
  94. */
  95. pending?: string;
  96. };
  97. stacktrace?: {
  98. /**
  99. * Customize stacktrace filtering
  100. */
  101. filter?(stacktrace: string): string;
  102. };
  103. /**
  104. * list of display processor to customize output
  105. * see https://github.com/bcaudan/jasmine-spec-reporter/blob/master/docs/customize-output.md
  106. */
  107. customProcessors?: Array<typeof DisplayProcessor>;
  108. /**
  109. * options for custom processors
  110. */
  111. customOptions?: any;
  112. /**
  113. * Low-level printing function, defaults to console.log.
  114. * Use process.stdout.write(log + '\n'); to avoid output to
  115. * devtools console while still reporting to command line.
  116. */
  117. print?: (log: string) => void;
  118. }