lighthouse 9.5.0-dev.20220627 → 9.5.0-dev.20220630

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/dist/report/bundle.esm.js +7 -6
  3. package/dist/report/flow.js +24 -24
  4. package/dist/report/standalone.js +19 -19
  5. package/{eslint-local-rules.js → eslint-local-rules.cjs} +0 -0
  6. package/flow-report/test/common-test.tsx +5 -4
  7. package/flow-report/test/flow-report-pptr-test.ts +4 -7
  8. package/flow-report/test/run-flow-report-tests.sh +20 -0
  9. package/flow-report/test/setup/env-setup.ts +44 -24
  10. package/flow-report/test/sidebar/sidebar-test.tsx +0 -1
  11. package/flow-report/test/topbar-test.tsx +5 -5
  12. package/flow-report/test/util-test.tsx +3 -3
  13. package/flow-report/tsconfig.json +4 -1
  14. package/lighthouse-cli/cli-flags.js +313 -305
  15. package/lighthouse-cli/run.js +1 -1
  16. package/lighthouse-cli/test/smokehouse/report-assert-test.js +1 -1
  17. package/lighthouse-core/audits/byte-efficiency/uses-responsive-images.js +30 -5
  18. package/lighthouse-core/audits/final-screenshot.js +2 -2
  19. package/lighthouse-core/audits/screenshot-thumbnails.js +6 -6
  20. package/lighthouse-core/audits/work-during-interaction.js +3 -3
  21. package/lighthouse-core/computed/metrics/cumulative-layout-shift.js +3 -3
  22. package/lighthouse-core/computed/metrics/first-meaningful-paint.js +2 -2
  23. package/lighthouse-core/computed/metrics/interactive.js +5 -5
  24. package/lighthouse-core/computed/metrics/lantern-first-meaningful-paint.js +3 -3
  25. package/lighthouse-core/computed/metrics/lantern-largest-contentful-paint.js +3 -3
  26. package/lighthouse-core/computed/metrics/largest-contentful-paint-all-frames.js +2 -2
  27. package/lighthouse-core/computed/metrics/largest-contentful-paint.js +2 -2
  28. package/lighthouse-core/computed/speedline.js +4 -4
  29. package/lighthouse-core/config/config-plugin.js +26 -0
  30. package/lighthouse-core/fraggle-rock/gather/navigation-runner.js +1 -0
  31. package/lighthouse-core/fraggle-rock/gather/session.js +3 -2
  32. package/lighthouse-core/gather/connections/connection.js +2 -2
  33. package/lighthouse-core/gather/driver/wait-for-condition.js +3 -3
  34. package/lighthouse-core/gather/driver.js +3 -2
  35. package/lighthouse-core/gather/gather-runner.js +2 -1
  36. package/lighthouse-core/gather/gatherers/main-document-content.js +0 -2
  37. package/lighthouse-core/lib/asset-saver.js +6 -6
  38. package/lighthouse-core/lib/lh-env.js +1 -1
  39. package/lighthouse-core/lib/lh-error.js +5 -5
  40. package/lighthouse-core/lib/lh-trace-processor.js +6 -6
  41. package/lighthouse-core/lib/navigation-error.js +34 -14
  42. package/lighthouse-core/lib/sentry.js +3 -3
  43. package/lighthouse-core/lib/url-shim.js +2 -2
  44. package/lighthouse-core/runner.js +6 -4
  45. package/lighthouse-core/util-commonjs.js +7 -6
  46. package/package.json +24 -19
  47. package/report/renderer/util.js +7 -6
  48. package/report/test/clients/bundle-test.js +4 -4
  49. package/report/test/generator/report-generator-test.js +3 -1
  50. package/report/test/renderer/category-renderer-test.js +3 -3
  51. package/report/test/renderer/components-test.js +36 -34
  52. package/report/test/renderer/crc-details-renderer-test.js +2 -2
  53. package/report/test/renderer/details-renderer-test.js +2 -2
  54. package/report/test/renderer/dom-test.js +4 -4
  55. package/report/test/renderer/element-screenshot-renderer-test.js +3 -2
  56. package/report/test/renderer/performance-category-renderer-test.js +4 -4
  57. package/report/test/renderer/pwa-category-renderer-test.js +3 -3
  58. package/report/test/renderer/report-renderer-axe-test.js +6 -8
  59. package/report/test/renderer/report-renderer-test.js +5 -5
  60. package/report/test/renderer/report-ui-features-test.js +8 -8
  61. package/report/test/renderer/snippet-renderer-test.js +2 -2
  62. package/report/test/renderer/text-encoding-test.js +2 -2
  63. package/report/test/renderer/util-test.js +1 -1
  64. package/root.js +0 -18
  65. package/shared/localization/format.js +1 -1
  66. package/shared/localization/locales/en-US.json +3 -0
  67. package/shared/localization/locales/en-XL.json +3 -0
  68. package/third-party/chromium-synchronization/inspector-issueAdded-types-test.js +1 -1
  69. package/third-party/chromium-synchronization/installability-errors-test.js +1 -3
  70. package/tsconfig.json +1 -1
  71. package/types/global-lh.d.ts +2 -2
  72. package/types/test.d.ts +53 -0
  73. package/flow-report/.eslintrc.cjs +0 -51
  74. package/flow-report/jest.config.js +0 -24
  75. package/flow-report/test/setup/global-setup.ts +0 -11
  76. package/jest.config.js +0 -30
  77. package/lighthouse-cli/.eslintrc.cjs +0 -28
  78. package/report/.eslintrc.cjs +0 -37
  79. package/report/test/.eslintrc.cjs +0 -11
  80. package/shared/test/localization/.eslintrc.cjs +0 -11
  81. package/types/jest.d.ts +0 -25
package/types/jest.d.ts DELETED
@@ -1,25 +0,0 @@
1
- /**
2
- * @license Copyright 2019 The Lighthouse Authors. All Rights Reserved.
3
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
5
- */
6
-
7
- declare namespace jest {
8
- interface Matchers<R> {
9
- /**
10
- * Jest's `toBeCloseTo()` exposed as an asymmetric matcher. This allows
11
- * approximate numeric testing within matchers like `toMatchObject()`.
12
- * The default for `numDigits` is 2.
13
- */
14
- toBeApproximately(expected: number, numDigits?: number): R;
15
- /**
16
- * Asserts that an inspectable promise created by makePromiseInspectable is currently resolved or rejected.
17
- * This is useful for situations where we want to test that we are actually waiting for a particular event.
18
- */
19
- toBeDone: (failureMessage?: string) => R;
20
- /**
21
- * Asserts that an i18n string (using en-US) matches an expected pattern.
22
- */
23
- toBeDisplayString: (pattern: RegExp | string) => R;
24
- }
25
- }