Merged PR 170: Add new eslint rules
- naming-convention - prefer-arrow-callback - func-style - import/no-default-export
This commit is contained in:
parent
3f58c5ba5e
commit
ad126c6c28
65 changed files with 781 additions and 784 deletions
|
@ -7,14 +7,15 @@ afterEach(() => {
|
|||
cleanup();
|
||||
});
|
||||
|
||||
const customRender = (ui: React.ReactElement, options = {}): RenderResult =>
|
||||
render(ui, {
|
||||
function CustomRender(ui: React.ReactElement, options = {}): RenderResult {
|
||||
return render(ui, {
|
||||
// wrap provider(s) here if needed
|
||||
wrapper: ({ children }) => children,
|
||||
...options
|
||||
});
|
||||
}
|
||||
|
||||
export * from '@testing-library/react';
|
||||
export { default as userEvent } from '@testing-library/user-event';
|
||||
// override render export
|
||||
export { customRender as render };
|
||||
export { CustomRender as render };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue