Wait for console.log to flush before exiting
When you have a console.log right before a process.exit, the console.log output is often not printed before the process exits. We should wait for console.log and other similar things to finish flushing before exiting.
@bcomnes is it something socket:test-related?
It probably would affect socket test as well, but I encountered it when doing a headless CLI.
https://github.com/socketsupply/socket-extension-operator-deploy/blob/75f6ccc66da5321a5c0004cac513a702a03a94b8/migrate-tool/src/index.js#L14-L57
Basically, if if you console.log and then shortly thereafter run process.exit, you will not see the console.log output.
I recently experienced this as well
This is an issue with how we query OSLogStore on macOS
This issue makes it hard to understand when something is failing on CI or when running the test app locally, we need to make it a high priority for next release