This repository includes a Jest test scaffold for the core logic, including sitemap parsing, file naming, and the page scraper.
Install dev dependencies:
npm install
Run tests:
npm test
Notes
.js files with export). Jest is configured with Babel to automatically transpile these on the fly, so no duplicate CommonJS files are needed.jsdom.