feat: FraseAncla section (02) — anchor quote
This commit is contained in:
1 parent
ccfcf71491
commit
d2fe1fcf64
5 files changed
+63
-1
No files matched your search
@@ -1 +1,19 @@
|
||||
import '@testing-library/jest-dom/vitest';
|
||||
|
||||
// jsdom lacks IntersectionObserver; Framer Motion's `whileInView` needs it.
|
||||
if (typeof window !== 'undefined' && !('IntersectionObserver' in window)) {
|
||||
class IntersectionObserverStub {
|
||||
observe() {}
|
||||
unobserve() {}
|
||||
disconnect() {}
|
||||
takeRecords() {
|
||||
return [];
|
||||
}
|
||||
root = null;
|
||||
rootMargin = '';
|
||||
thresholds = [];
|
||||
}
|
||||
// @ts-expect-error – installing stub on window
|
||||
window.IntersectionObserver = IntersectionObserverStub;
|
||||
global.IntersectionObserver = IntersectionObserverStub;
|
||||
}
|
||||
Reference in new issue
Block a user