Skip to content

Commit

Permalink
PalisadoesFoundation#2970: autoGen-talawa-admin-docs-debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
bint-Eve committed Jan 10, 2025
1 parent a9f25ae commit 0be6b3c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 23 deletions.
16 changes: 0 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
"@types/inquirer": "^9.0.7",
"@types/jest": "^26.0.24",
"@types/js-cookie": "^3.0.6",
"@types/node": "^22.10.5",
"@types/node-fetch": "^2.6.10",
"@types/react": "^18.3.12",
"@types/react-beautiful-dnd": "^13.1.8",
Expand Down Expand Up @@ -156,7 +155,6 @@
"postcss-modules": "^6.0.1",
"sass": "^1.80.7",
"tsx": "^4.19.1",
"typescript": "^5.7.3",
"vite-plugin-svgr": "^4.2.0",
"vitest": "^2.1.5",
"whatwg-fetch": "^3.6.20"
Expand Down
24 changes: 19 additions & 5 deletions src/screens/OrganizationVenues/OrganizationVenues.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,25 @@ import { vi } from 'vitest';
import { errorHandler } from 'utils/errorHandler';

// Mock MutationObserver
global.MutationObserver = class {
constructor(callback: Function) {}
disconnect() {}
observe(element: any, initObject: any) {}
};
import type {
MutationCallback,
MutationObserver,
MutationRecord,
} from '@types/node';

if (typeof global.MutationObserver !== 'function') {
global.MutationObserver = class MutationObserver {
constructor(callback: MutationCallback) {
this.callback = callback;
}
observe(target: Node, options?: MutationObserverInit) {}
disconnect() {}
takeRecords(): MutationRecord[] {
return [];
}
private callback: MutationCallback;
};
}

const MOCKS = [
{
Expand Down

0 comments on commit 0be6b3c

Please sign in to comment.