tests: add report/ to tsconfig (#12822)
This commit is contained in:
Родитель
bee86194d9
Коммит
9827fdbfd9
|
@ -1,6 +1,5 @@
|
|||
**/node_modules/**
|
||||
**/third_party/**
|
||||
**/generated/**
|
||||
**/source-maps/**
|
||||
|
||||
lighthouse-cli/test/fixtures/byte-efficiency/bundle.js
|
||||
|
@ -11,6 +10,7 @@ coverage/**
|
|||
|
||||
!.eslintrc.js
|
||||
|
||||
lighthouse-core/lib/cdt/generated/SourceMap.js
|
||||
lighthouse-core/scripts/legacy-javascript/variants
|
||||
|
||||
third-party/**
|
||||
|
|
|
@ -26,8 +26,6 @@ last-run-results.html
|
|||
*.artifacts.log
|
||||
*.ctc.json
|
||||
|
||||
report/generated
|
||||
|
||||
!lighthouse-core/test/results/artifacts/*.trace.json
|
||||
!lighthouse-core/test/results/artifacts/*.devtoolslog.json
|
||||
!lighthouse-core/test/fixtures/artifacts/**/*.trace.json
|
||||
|
|
|
@ -64,4 +64,5 @@ function __initLighthouseReport__() {
|
|||
});
|
||||
}
|
||||
|
||||
// @ts-expect-error
|
||||
window.__initLighthouseReport__ = __initLighthouseReport__;
|
||||
|
|
|
@ -13,6 +13,9 @@ import {I18n} from '../renderer/i18n.js';
|
|||
import {Logger} from '../renderer/logger.js';
|
||||
import {TextEncoding} from '../renderer/text-encoding.js';
|
||||
|
||||
// @ts-expect-error
|
||||
window.I18n = I18n;
|
||||
// @ts-expect-error
|
||||
window.Logger = Logger;
|
||||
// @ts-expect-error
|
||||
window.TextEncoding = TextEncoding;
|
||||
|
|
|
@ -15,8 +15,13 @@ import {ReportRenderer} from '../renderer/report-renderer.js';
|
|||
import {ReportUIFeatures} from '../renderer/report-ui-features.js';
|
||||
import {TextEncoding} from '../renderer/text-encoding.js';
|
||||
|
||||
// @ts-expect-error
|
||||
window.DOM = DOM;
|
||||
// @ts-expect-error
|
||||
window.Logger = Logger;
|
||||
// @ts-expect-error
|
||||
window.ReportRenderer = ReportRenderer;
|
||||
// @ts-expect-error
|
||||
window.ReportUIFeatures = ReportUIFeatures;
|
||||
// @ts-expect-error
|
||||
window.TextEncoding = TextEncoding;
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
"include": [
|
||||
"lighthouse-cli/**/*.js",
|
||||
"lighthouse-core/**/*.js",
|
||||
"report/**/*.js",
|
||||
"clients/**/*.js",
|
||||
"build/**/*.js",
|
||||
"./types/**/*.d.ts",
|
||||
|
@ -29,8 +30,8 @@
|
|||
"lighthouse-cli/test/fixtures/**/*.js",
|
||||
"lighthouse-core/scripts/legacy-javascript/variants",
|
||||
"lighthouse-core/test/chromium-web-tests/webtests",
|
||||
"report/generated",
|
||||
// These test files require further changes before they can be type checked.
|
||||
"report/test/**/*.js",
|
||||
"lighthouse-core/test/config/budget-test.js",
|
||||
"lighthouse-core/test/config/config-helpers-test.js",
|
||||
"lighthouse-core/test/config/config-plugin-test.js",
|
||||
|
|
Загрузка…
Ссылка в новой задаче