-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid silently swallowing connection errors
When a connection error takes place, the test setup would silently swallow it (missing callback for `connection.connect()`) Rewrite the whole thing so that it's easier to follow, to make sure it awaits the promises, and to use a type interface that aliases over `mysql` and `mysql2` instead of `any`.
- Loading branch information
Showing
1 changed file
with
65 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters