1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00
metamask-extension/lavamoat/browserify
Elliot Winkler a4f3a5fdd0
Widen the number of test files that TS sees (#19403)
Currently, all test files are excluded from TypeScript's purview. That
means that if any test file fails to typecheck, we won't know about it.
In fact if we were to remove all test files from the `exclude` list,
then some files would indeed fail to be typechecked.

At the moment all we care about is the unit test file for
NetworkController. Due to how the `include`/`exclude` rules work in
`tsconfig.json`, we can't "un-exclude" that file after it's excluded, so
to fix this, we simply exclude fewer things.

While we're at it, we also:

- Add `esModuleInterop: true` to address warnings we sometimes see
  around imports
- Add `noEmit: true` so that we can run `tsc` to test typechecking on
  its own without producing any compiled files (so that ESLint doesn't
  accidentally pick them up)
- Clean up `tsconfig.json` slightly
2023-06-07 12:16:06 -06:00
..
beta Widen the number of test files that TS sees (#19403) 2023-06-07 12:16:06 -06:00
desktop Widen the number of test files that TS sees (#19403) 2023-06-07 12:16:06 -06:00
flask Widen the number of test files that TS sees (#19403) 2023-06-07 12:16:06 -06:00
main Widen the number of test files that TS sees (#19403) 2023-06-07 12:16:06 -06:00
mmi Widen the number of test files that TS sees (#19403) 2023-06-07 12:16:06 -06:00
policy-override.json Use separate versions for Flask and Stable snaps (#18875) 2023-05-03 15:16:43 +02:00