Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/gator-permissions-controller/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
{ "path": "../messenger/tsconfig.build.json" },
{ "path": "../transaction-controller/tsconfig.build.json" }
],
"include": ["../../types", "./src"]
"include": ["../../types", "./src"],
"exclude": ["./src/test"]
}
3 changes: 2 additions & 1 deletion packages/gator-permissions-controller/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
{ "path": "../messenger" },
{ "path": "../transaction-controller" }
],
"include": ["../../types", "./src"]
"include": ["../../types", "./src"],
"exclude": ["./src/test"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test files lose type-checking in development tsconfig

Medium Severity

The "exclude": ["./src/test"] was added to tsconfig.json, but this file is used for editor type-checking and linting — not for builds. Every other package in this repo (assets-controller, assets-controllers, eth-json-rpc-middleware) only excludes test paths from tsconfig.build.json, never from tsconfig.json. This causes standalone test files like errors.test.ts inside ./src/test/ to silently lose type-checking in the IDE and during lint, which contradicts the PR's stated goal of only excluding the test folder from the build artifact.

Fix in Cursor Fix in Web

}
Loading