ubiquity / scraper-kernel

A Puppeteer-based scraping platform with modular, page-level scraping logic.
0 stars 3 forks source link

add jest testing and some tests #10

Closed molecula451 closed 1 year ago

molecula451 commented 1 year ago

This PR adds jest testing framework to the awesome scraper-kernel

in my local testing i'm passing config.ts

executablePath: "/bin/google-chrome", args: --no-sandbox

to make sure it handles chrome on the backend on a docker container ubuntu:22.04

https://github.com/ubiquity/scraper-kernel/assets/41552663/9cdfc2c8-8108-4146-a3e1-72f71d24c0bd

@pavlovcik

https://www.dropbox.com/s/ge92q0rtv0s4z0l/jest.mp4?dl=0

0x4007 commented 1 year ago

Thank you. The pull request looks pretty good. I forgot to add the pull request template to this repository, but in the future please associate the pull request with the issue directly by writing "Resolves #6" in your original comment when opening up the pull request.