jsdom-screenshot icon indicating copy to clipboard operation
jsdom-screenshot copied to clipboard

Document the default screenshot directory

Open DanKaplanSES opened this issue 11 months ago • 1 comments

My test calls generateImage(); without issue, but I have no idea where the screenshot went. This is probably documented within the screenshot options, but the link to that in the readme 404s. Regardless, it might be worth stating directly in the readme of this project as I'm sure it's something any first-time user would want to know.

DanKaplanSES avatar Aug 08 '23 01:08 DanKaplanSES

I just noticed this function returns a Promise but the first example doesn't await on it. That's why it gave me no information when I called generateImage(); and my test seemed to pass. I don't have a lot of experience writing top-level async/await code; does this first example work correctly or is it also missing an await like my test was?

DanKaplanSES avatar Aug 08 '23 01:08 DanKaplanSES