mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-10-22 11:46:18 +00:00
feat/test-module-mocks
react-tooltip, on hover, called getComputedStyle, MutationObserver and ResizeObserver, none of which the browser env exposed. The env now also carries the UI event constructors (MouseEvent, KeyboardEvent, FocusEvent and the rest), DOMRect, MutationObserver and a bound getComputedStyle from JSDOM, grouped by kind. JSDOM has no ResizeObserver. It does no layout either, so no element ever changes size; the env's ResizeObserver accepts observe() and never calls back, which is what a real one would do on a page that never resizes.
@pezkuwi/dev
A collection of shared CI scripts and development environment (configuration, dependencies) used by all @pezkuwi projects.
Included here -
- @pezkuwi/dev Common base configurations for our TypeScript projects
- @pezkuwi/dev-test A Jest-like global environment for usage alongside
node:test - @pezkuwi/dev-ts An ESM loader for TS environments
Languages
JavaScript
71.7%
TypeScript
25.5%
Shell
2.8%