photostructure / exiftool-vendored.js

Fast, cross-platform Node.js access to ExifTool
https://photostructure.github.io/exiftool-vendored.js/
MIT License
405 stars 37 forks source link

Asynchronous operations that weren't stopped #155

Closed ElielGez closed 9 months ago

ElielGez commented 9 months ago

Describe the bug Noticed while trying to write tests in jest there is warning about asynchronous operations that weren't stopped. image

To Reproduce image

Expected behavior To not have async operations running after the promise resolved

Environment (please complete the following information):

mceachen commented 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.

ElielGez commented 9 months ago

Sorry about that.. Thanks for the answer