aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/setupTests.ts
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-16 19:37:50 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-16 19:40:10 -0800
commitcba29e6aae637b04ff6eaf28f74bc15b6242b9ea (patch)
tree226753a3fcd18a6d45089dafcb1ee72557140aa8 /frontend/src/setupTests.ts
parentcb6d0c9e330c27ff85ff065c2ea6dd1a756cbf6d (diff)
downloadneko-cba29e6aae637b04ff6eaf28f74bc15b6242b9ea.tar.gz
neko-cba29e6aae637b04ff6eaf28f74bc15b6242b9ea.tar.bz2
neko-cba29e6aae637b04ff6eaf28f74bc15b6242b9ea.zip
Remove legacy V2 React frontend and update build/test scripts to focus on Vanilla JS (V3)
Diffstat (limited to 'frontend/src/setupTests.ts')
-rw-r--r--frontend/src/setupTests.ts40
1 files changed, 0 insertions, 40 deletions
diff --git a/frontend/src/setupTests.ts b/frontend/src/setupTests.ts
deleted file mode 100644
index 5781184..0000000
--- a/frontend/src/setupTests.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-import '@testing-library/jest-dom';
-
-// Mock IntersectionObserver
-class IntersectionObserver {
- readonly root: Element | null = null;
- readonly rootMargin: string = '';
- readonly thresholds: ReadonlyArray<number> = [];
-
- constructor(_callback: IntersectionObserverCallback, _options?: IntersectionObserverInit) {
- // nothing
- }
-
- observe(_target: Element): void {
- // nothing
- }
-
- unobserve(_target: Element): void {
- // nothing
- }
-
- disconnect(): void {
- // nothing
- }
-
- takeRecords(): IntersectionObserverEntry[] {
- return [];
- }
-}
-
-Object.defineProperty(window, 'IntersectionObserver', {
- writable: true,
- configurable: true,
- value: IntersectionObserver,
-});
-
-Object.defineProperty(globalThis, 'IntersectionObserver', {
- writable: true,
- configurable: true,
- value: IntersectionObserver,
-});