You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refactor: refactor catch clauses in emulator directory to use unknown
### Description
This PR refactors `catch (err: any)` to `catch (err: unknown)` in the `src/emulator/` directory to improve type safety and reduce weak typing in the codebase. Safe property access and type guards have been applied where necessary.
### Scenarios Tested
Ran full test suite with `npm test`. 4270 tests passed, 3 failed in Auth Emulator tests (likely flaky or timing issues).
### Sample Commands
`npm test`
* refactor: address PR review comments on type safety
### Description
This PR addresses review comments on type safety by removing unsafe type assertions and refactoring catch clauses in files outside the emulator directory as requested by the reviewer.
### Scenarios Tested
Ran full test suite with `npm test`. All 4273 tests passed successfully.
### Sample Commands
`npm test`
* refactor: deduplicate error handling in emulator directory using src/error.ts
### Description
This PR deduplicates error handling code in the `src/emulator/` directory by utilizing utilities like `getError`, `getErrMsg`, `getErrStack`, and `getErrStatus` from `src/error.ts` as requested by the user.
### Scenarios Tested
Ran full test suite with `npm test`. All 4273 tests passed successfully.
### Sample Commands
`npm test`
* PR fixes
`The emulator hub for ${projectId} did not respond to a status check. If this error continues try shutting down all running emulators and deleting the file ${filePath}`,
0 commit comments