Open adriancofie opened 1 year ago
/clinical-trials-listing-app/src/__tests__/App.test.js
1:15 error `cleanup` is performed automatically by your test runner, you don't need manual cleanups testing-library/no-manual-cleanup
35:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/components/atomic/InputLabel/__tests__/InputLabel.tests.js
9:1 error describe should not have an empty title jest/valid-title
10:8 error `wrapper` is not a recommended name for `render` returned value. Instead, you should destructure it, or name it using one of: `view`, `utils` testing-library/render-result-naming-convention
21:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
23:17 error Avoid destructuring queries from `render` result, use `screen.getByTestId` instead testing-library/prefer-screen-queries
25:10 error Avoid destructuring queries from `render` result, use `screen.getByText` instead testing-library/prefer-screen-queries
26:17 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
/clinical-trials-listing-app/src/components/atomic/Radio/__tests__/Radio.tests.js
17:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/components/atomic/RemovableTag/__tests__/RemovableTag.tests.js
7:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
15:20 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
15:30 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
15:30 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
16:10 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
16:20 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
18:4 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
18:14 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
25:20 warning Replace toBeCalled() with its canonical name of toHaveBeenCalled() jest/no-alias-methods
/clinical-trials-listing-app/src/components/atomic/TextInput/__tests__/TextInput.test.js
1:10 error `cleanup` is performed automatically by your test runner, you don't need manual cleanups testing-library/no-manual-cleanup
20:13 error Forbidden usage of `render` within testing framework `beforeEach` setup testing-library/no-render-in-setup
25:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
27:10 error Avoid destructuring queries from `render` result, use `screen.getByLabelText` instead testing-library/prefer-screen-queries
27:37 error Prefer .toBeInTheDocument() for asserting DOM node existence jest-dom/prefer-in-document
28:10 error Avoid destructuring queries from `render` result, use `screen.getByPlaceholderText` instead testing-library/prefer-screen-queries
28:49 error Prefer .toBeInTheDocument() for asserting DOM node existence jest-dom/prefer-in-document
29:10 error Avoid destructuring queries from `render` result, use `screen.getByText` instead testing-library/prefer-screen-queries
32:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
35:21 error Avoid destructuring queries from `render` result, use `screen.getByPlaceholderText` instead testing-library/prefer-screen-queries
37:10 error Avoid destructuring queries from `render` result, use `screen.getByDisplayValue` instead testing-library/prefer-screen-queries
43:3 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
80:22 error Avoid destructuring queries from `render` result, use `screen.getByPlaceholderText` instead testing-library/prefer-screen-queries
91:3 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
114:22 error Avoid destructuring queries from `render` result, use `screen.getByPlaceholderText` instead testing-library/prefer-screen-queries
116:18 error Avoid destructuring queries from `render` result, use `screen.getByTestId` instead testing-library/prefer-screen-queries
118:18 error Prefer .toBeInTheDocument() for asserting DOM node existence jest-dom/prefer-in-document
119:11 error Avoid destructuring queries from `render` result, use `screen.getByText` instead testing-library/prefer-screen-queries
119:36 error Prefer .toBeInTheDocument() for asserting DOM node existence jest-dom/prefer-in-document
/clinical-trials-listing-app/src/components/atomic/scroll-restoration/__tests__/useScrollRestoration.tests.js
75:10 error `fireEvent.click` is sync and does not need `await` operator testing-library/no-await-sync-events
/clinical-trials-listing-app/src/components/atomic/spinner/__tests__/Spinner.tests.js
7:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
9:10 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
9:20 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
10:10 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
10:20 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
11:10 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
11:20 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
12:10 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
12:20 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
/clinical-trials-listing-app/src/components/molecules/pager/__tests__/pager.test.js
35:48 error Use toHaveLength() instead jest/prefer-to-have-length
49:58 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
66:58 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
76:48 error Use toHaveLength() instead jest/prefer-to-have-length
79:10 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
79:20 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
79:68 error Use toHaveLength() instead jest/prefer-to-have-length
90:58 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
105:58 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
122:58 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
129:4 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
129:14 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
132:4 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
132:14 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
145:59 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
160:59 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
177:58 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
214:58 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
231:4 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
231:14 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
261:58 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
283:4 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
283:14 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
288:4 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
288:14 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
313:58 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
335:4 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
335:14 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
340:4 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
340:14 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
368:58 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
385:4 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
385:14 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
390:4 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
390:14 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
/clinical-trials-listing-app/src/components/molecules/results-list/__tests__/results-list.tests.js
10:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
10:2 error test should not have an empty title jest/valid-title
61:49 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
69:49 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
/clinical-trials-listing-app/src/components/molecules/results-list/results-list-item/__tests__/results-list-item.test.js
10:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
39:10 error Avoid using container methods. Prefer using the methods from Testing Library, such as "getByRole()" testing-library/no-container
39:20 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
/clinical-trials-listing-app/src/hooks/ctsApiSupport/__tests__/useCtsApi.test.js
170:3 error Expect must have a corresponding matcher call jest/valid-expect
232:3 error Expect must have a corresponding matcher call jest/valid-expect
/clinical-trials-listing-app/src/hooks/listingSupport/__tests__/useListingSupport.test.js
284:49 error Prefer .toBeInTheDocument() for asserting DOM node existence jest-dom/prefer-in-document
343:49 error Prefer .toBeInTheDocument() for asserting DOM node existence jest-dom/prefer-in-document
401:49 error Prefer .toBeInTheDocument() for asserting DOM node existence jest-dom/prefer-in-document
/clinical-trials-listing-app/src/services/api/actions/__tests__/getClinicalTrials.test.js
8:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
51:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/services/api/actions/__tests__/getListingInformationById.test.js
18:6 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
21:6 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
24:6 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
/clinical-trials-listing-app/src/services/api/actions/__tests__/getListingInformationByName.test.js
18:6 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
21:6 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
/clinical-trials-listing-app/src/services/api/actions/__tests__/getTrialType.test.js
18:6 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
21:6 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
/clinical-trials-listing-app/src/services/api/clinical-trials-search-api/__tests__/getClinicalTrials.test.js
27:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
44:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
69:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
87:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
105:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/services/api/trial-listing-support-api/__tests__/getListingInformationById.test.js
20:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
40:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
63:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
74:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
86:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/services/api/trial-listing-support-api/__tests__/getListingInformationByName.test.js
20:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
40:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
51:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
63:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
75:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/services/api/trial-listing-support-api/__tests__/getTrialType.test.js
20:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
37:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
54:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
63:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
73:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
83:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/store/__tests__/actions.test.js
4:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/store/__tests__/reducer.test.js
18:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
38:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
58:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/utils/__tests__/cleanURI.test.js
4:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/utils/__tests__/data-route-param-util.test.js
77:7 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
101:7 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
129:7 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
157:7 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
/clinical-trials-listing-app/src/utils/__tests__/getIdOrNameAction.test.js
4:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
11:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
18:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
25:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
32:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
39:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
39:7 error Test title is used multiple times in the same describe block jest/no-identical-title
46:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/utils/__tests__/getLocationInfoFromSites.test.js
9:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
30:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
56:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
110:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
149:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
183:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/utils/__tests__/getProductTestBase.test.js
14:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
19:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/utils/__tests__/matchItemToTerm.test.js
6:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
10:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/utils/__tests__/matchQueryParam.test.js
5:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
14:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
23:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
32:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/utils/__tests__/number.test.js
6:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/home/belolson/Projects/clinical-trials-listing-app/src/utils/__tests__/objects.tests.js
9:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
12:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
13:56 error Use toBeUndefined() instead jest/prefer-to-be-undefined
/clinical-trials-listing-app/src/utils/__tests__/replaceTokens.test.js
7:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
12:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
23:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
36:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/utils/__tests__/strings.test.js
4:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
10:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
16:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/utils/__tests__/url.test.js
7:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
15:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
18:62 error Use toBeNull() instead jest/prefer-to-be-null
23:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
33:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
43:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/views/Disease/__tests__/Disease.TrialType.Intervention.test.js
167:10 error `fireEvent.click` is sync and does not need `await` operator testing-library/no-await-sync-events
174:5 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
177:5 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
/clinical-trials-listing-app/src/views/Disease/__tests__/Disease.TrialType.test.js
162:10 error `fireEvent.click` is sync and does not need `await` operator testing-library/no-await-sync-events
169:5 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
172:5 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
/clinical-trials-listing-app/src/views/ErrorBoundary/__tests__/ErrorPage.test.js
1:15 error `cleanup` is performed automatically by your test runner, you don't need manual cleanups testing-library/no-manual-cleanup
14:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/views/ErrorBoundary/__tests__/InvalidParameters.test.js
7:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/views/ErrorBoundary/__tests__/PageNotFound.test.js
3:2 error `cleanup` is performed automatically by your test runner, you don't need manual cleanups testing-library/no-manual-cleanup
20:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
51:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/views/Intervention/__tests__/Intervention.ErrorPage.test.js
20:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/views/Intervention/__tests__/Intervention.TrialType.test.js
142:10 error `fireEvent.click` is sync and does not need `await` operator testing-library/no-await-sync-events
149:5 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
152:5 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
/clinical-trials-listing-app/src/views/Manual/__tests__/Manual.test.js
3:2 error `cleanup` is performed automatically by your test runner, you don't need manual cleanups testing-library/no-manual-cleanup
34:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
85:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
6948:14 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
6957:41 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
6957:58 error Use toHaveLength() instead jest/prefer-to-have-length
6969:20 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
6975:10 error `fireEvent.click` is sync and does not need `await` operator testing-library/no-await-sync-events
6982:5 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
6985:5 error Prefer .toHaveClass() over checking element className jest-dom/prefer-to-have-class
6988:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
7035:2 error Prefer using 'it' instead of 'test' within describe jest/consistent-test-it
/clinical-trials-listing-app/src/views/__tests__/CTLViewsHoC.test.js
402:6 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
452:6 warning Replace toThrowError() with its canonical name of toThrow() jest/no-alias-methods
/clinical-trials-listing-app/src/views/__tests__/CTLViewsHoc.useListingHocInt.js
260:11 error Test should not contain if statements jest/no-if
✖ 203 problems (189 errors, 14 warnings)
npm uninstall --save eslint-config-airbnb eslint-config-prettier eslint-config-react-app eslint-plugin-flowtype eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier has been run and that the modules are removed from package.json