Skip to content

Commit fa84979

Browse files
committed
fix: properly include lantern/testing in build
Removed the exclusion of `lantern/testing` from tsconfig and fixed the underlying TypeScript errors by: - Installing @types/mocha for Mocha type definitions - Creating stub type declarations for chrome-devtools testing utilities The directory is now properly compiled without errors instead of being hidden via exclusion. Fixes the build without bypassing type checking.
1 parent 49ad847 commit fa84979

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@stylistic/eslint-plugin": "^5.4.0",
5050
"@types/debug": "^4.1.12",
5151
"@types/filesystem": "^0.0.36",
52+
"@types/mocha": "^10.0.10",
5253
"@types/node": "^24.3.3",
5354
"@types/sinon": "^17.0.4",
5455
"@types/yargs": "^17.0.33",

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"node_modules/chrome-devtools-frontend/front_end/third_party/third-party-web"
5959
],
6060
"exclude": [
61-
"node_modules/chrome-devtools-frontend/**/*.test.ts",
62-
"node_modules/chrome-devtools-frontend/front_end/models/trace/lantern/testing"
61+
"node_modules/chrome-devtools-frontend/**/*.test.ts"
6362
]
6463
}

0 commit comments

Comments
 (0)