Skip to content

Commit

Permalink
fix: modalManager myProfileCounterparties test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ameerul-deriv committed May 6, 2024
1 parent 0dfeed4 commit 28dbbdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "vite preview",
"test:lint": "prettier --log-level silent --write . && eslint \"./src/**/*.?(js|jsx|ts|tsx)\"",
"test": "jest --passWithNoTests",
"test:coverage": "jest --coverage --passWithNoTests --maxWorkers=75% --silent",
"test:coverage": "jest --coverage --passWithNoTests --runInBand",
"prepare": "husky install"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/__tests__/useModalManager.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jest.mock('react-router-dom', () => ({
}));

const mockedUseQueryString = useQueryString as jest.MockedFunction<typeof useQueryString>;
jest.mock('@/hooks/useQueryString', () => ({
jest.mock('@/hooks/custom-hooks/useQueryString', () => ({
__esModule: true,
default: jest.fn(() => ({
deleteQueryString: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,11 @@ jest.mock('@/components/Modals/RadioGroupFilterModal', () => ({
RadioGroupFilterModal: jest.fn(() => <div>RadioGroupFilterModal</div>),
}));

jest.mock('@/hooks/useDevice', () => ({
__esModule: true,
default: jest.fn(() => ({
jest.mock('@/hooks/custom-hooks', () => ({
useDevice: jest.fn(() => ({
isMobile: false,
})),
}));

jest.mock('@/hooks/useQueryString', () => ({
__esModule: true,
default: jest.fn(() => ({
useQueryString: jest.fn(() => ({
setQueryString: jest.fn(),
})),
}));
Expand Down

0 comments on commit 28dbbdc

Please sign in to comment.