Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RAC-225: fix missing prettier on tsx files
- Loading branch information
1 parent
87aba67
commit 4d99cdb
Showing
8 changed files
with
51 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
import React, {ComponentType, ReactElement, ReactNode} from 'react'; | ||
import {render, RenderOptions} from '@testing-library/react'; | ||
import AkeneoPim from '../themes/akeneo-pim'; | ||
import { ThemeProvider } from 'styled-components'; | ||
import {ThemeProvider} from 'styled-components'; | ||
|
||
const AllTheProviders = ({children}: {children: ReactNode}) => { | ||
return ( | ||
<ThemeProvider theme={AkeneoPim}> | ||
{children} | ||
</ThemeProvider> | ||
); | ||
return <ThemeProvider theme={AkeneoPim}>{children}</ThemeProvider>; | ||
}; | ||
|
||
const customRender = (ui: ReactElement, options?: Omit<RenderOptions, 'queries'>) => | ||
render(ui, { wrapper: AllTheProviders as ComponentType, ...options }); | ||
render(ui, {wrapper: AllTheProviders as ComponentType, ...options}); | ||
|
||
export * from '@testing-library/react'; | ||
export { customRender as render }; | ||
export {customRender as render}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters