Closed ElielGez closed 9 months ago
You need to tell exiftool to exit in a afterEach
or afterAll
block.
https://github.com/photostructure/exiftool-vendored.js#mocha-v400
https://jestjs.io/docs/setup-teardown#one-time-setup
Also: please don’t screen shot your code. If you’re showing me code to reproduce the issue, only having a screenshot means I have to type it back in, and most open source developers will just close the issue rather than bother with that.
By pasting the code directly into a code block, or by using a gist, or even a link to an external repo, you’re increasing your chances of getting your problem solved by the volunteers who maintain the code you have an issue with.
Sorry about that.. Thanks for the answer
Describe the bug Noticed while trying to write tests in jest there is warning about asynchronous operations that weren't stopped.![image](https://github.com/photostructure/exiftool-vendored.js/assets/24525253/9d324a7e-900e-4700-abc8-2592f42e5e0b)
To Reproduce![image](https://github.com/photostructure/exiftool-vendored.js/assets/24525253/2b96be3b-893e-499c-af78-2cd3ec1336f9)
Expected behavior To not have async operations running after the promise resolved
Environment (please complete the following information):