FastAPI + Celery + Next.js + Postgres/Redis app with company monitoring, source collection, LLM-based change analysis, enrichment, and account security (Turnstile, escalating lockout, email verification).
18 lines
626 B
TypeScript
18 lines
626 B
TypeScript
import "@testing-library/jest-dom/vitest";
|
|
|
|
// jsdom doesn't implement these - Radix UI's Select (and other primitives
|
|
// built on pointer events) call them unconditionally, so tests that open
|
|
// one throw without these no-op polyfills.
|
|
if (!Element.prototype.hasPointerCapture) {
|
|
Element.prototype.hasPointerCapture = () => false;
|
|
}
|
|
if (!Element.prototype.setPointerCapture) {
|
|
Element.prototype.setPointerCapture = () => {};
|
|
}
|
|
if (!Element.prototype.releasePointerCapture) {
|
|
Element.prototype.releasePointerCapture = () => {};
|
|
}
|
|
if (!Element.prototype.scrollIntoView) {
|
|
Element.prototype.scrollIntoView = () => {};
|
|
}
|