Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: run browser script tests in headless Chrome
The tests for the browser scripts were previously run in a virtual DOM (within Jest’s JDOM environment). This commit introduces a new Jest environment (and companion utils) to run tests in a full browser environment (headless Chrome, driven by Puppeteer). Jest’s mock facility is available in the browser context through the `window.mock` object.
- Loading branch information