Mocking Browsershot for faster tests | Rias.be #539
Replies: 2 comments
-
Do you have any advice for mocking when using the html() method as it is a static function? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Mocking Browsershot for faster tests | Rias.be
Spatie's Browsershot is a wonderful package that uses puppeteer to render a web page to transform it into an image or PDF. Having this functionality covered by tests generally requires you to install puppeteer in your CI environment and can slow down your tests a lot.
https://rias.be/blog/mocking-browsershot-for-faster-tests
Beta Was this translation helpful? Give feedback.
All reactions