style: add eslint configuration and fixed linter issues (#35)
* style: add eslint configuration as per bee-js * chore: add `plugin:react/reocommended` in `.eslintrc` Co-authored-by: nugaon <50576770+nugaon@users.noreply.github.com> * chore: add `consistent` to `array-bracket-newline` as per review * style: after automatic fixes with `npm run lint` * style: fixed all linter errors * refactor: fixed all linter warnings * chore: added missing new line at end of `.prettierrc` file Co-authored-by: nugaon <50576770+nugaon@users.noreply.github.com>
This commit is contained in:
+6
-6
@@ -1,5 +1,5 @@
|
||||
import { render } from '@testing-library/react';
|
||||
import App from './App';
|
||||
import { render } from '@testing-library/react'
|
||||
import App from './App'
|
||||
|
||||
// Mocks methods that are not implemented in JSDOM
|
||||
// see https://jestjs.io/docs/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom
|
||||
@@ -15,9 +15,9 @@ Object.defineProperty(window, 'matchMedia', {
|
||||
removeEventListener: jest.fn(),
|
||||
dispatchEvent: jest.fn(),
|
||||
})),
|
||||
});
|
||||
})
|
||||
|
||||
// TODO: this is not a good test and should be removed. Keeping it in to make sure the whole app renders (to be used in CI)
|
||||
test('should render the app', async () => {
|
||||
render(<App />);
|
||||
});
|
||||
test('should render the app', () => {
|
||||
render(<App />)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user