How to test a Vue composable with TypeScript

With this quick Promise-based utility, it's easy to write type-safe unit tests for Vue composables.