From 2b2bafa8c61e1dfe7aafdbdfb7b8dc4b73cce5f8 Mon Sep 17 00:00:00 2001 From: Carlos Valente <34649812+cpvalente@users.noreply.github.com> Date: Sun, 19 Dec 2021 16:36:11 +0100 Subject: [PATCH] add mock object (#75) --- .eslintrc | 4 +--- client/src/__mocks__/QueryClient.mock.js | 9 +++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 client/src/__mocks__/QueryClient.mock.js diff --git a/.eslintrc b/.eslintrc index ed21f44e8..89a54ce1c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,10 +1,8 @@ { "extends": [ - "react-app", - "react-app/jest", "prettier" ], - "plugins": ["react", "testing-library", "jest", "prettier"], + "plugins": ["testing-library", "jest", "prettier"], "rules": { } } \ No newline at end of file diff --git a/client/src/__mocks__/QueryClient.mock.js b/client/src/__mocks__/QueryClient.mock.js new file mode 100644 index 000000000..d39682c74 --- /dev/null +++ b/client/src/__mocks__/QueryClient.mock.js @@ -0,0 +1,9 @@ +import {QueryClient} from "react-query"; + +export const queryClientMock = new QueryClient({ + defaultOptions: { + queries: { + retry: false, + }, + }, +}); \ No newline at end of file