Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: wait for async process completion (#539)
`generateConfigs()` function executes a nodejs [exec] that takes many seconds to complete. As the test was not waiting for the process to terminate, Jest was complaining with the following error message: ``` Jest did not exit one second after the test run has completed. This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue. ``` Additionally, this test could have a false positive expectation since it was likely to run the snapshot comparison with previously generated plugin configurations. By default Jest tests will timeout if they take longer than 5 seconds to complete, since this test takes more than 10 seconds to complete on my local machine, this test timeout configuration has been increased to 20 seconds. [exec]: https://nodejs.org/api/child_process.html#child_processexeccommand-options-callback
- Loading branch information