File tree Expand file tree Collapse file tree 6 files changed +28
-28
lines changed Expand file tree Collapse file tree 6 files changed +28
-28
lines changed Original file line number Diff line number Diff line change 1
- import React from " react" ;
2
- import { render } from " @testing-library/react" ;
3
- import App from " ./App" ;
1
+ import React from ' react'
2
+ import { render } from ' @testing-library/react'
3
+ import App from ' ./App'
4
4
5
- test ( " renders learn react link" , ( ) => {
6
- const { getByText } = render ( < App /> ) ;
7
- const linkElement = getByText ( / l e a r n r e a c t / i) ;
8
- expect ( linkElement ) . toBeInTheDocument ( ) ;
9
- } ) ;
5
+ test ( ' renders learn react link' , ( ) => {
6
+ const { getByText } = render ( < App /> )
7
+ const linkElement = getByText ( / l e a r n r e a c t / i)
8
+ expect ( linkElement ) . toBeInTheDocument ( )
9
+ } )
Original file line number Diff line number Diff line change 1
- import React from " react" ;
1
+ import React from ' react'
2
2
3
3
export default ( ) => {
4
4
return (
@@ -11,5 +11,5 @@ export default () => {
11
11
cra-template-unicorn
12
12
</ a >
13
13
</ h1 >
14
- ) ;
15
- } ;
14
+ )
15
+ }
Original file line number Diff line number Diff line change 1
- import { combineReducers } from " @reduxjs/toolkit" ;
2
- import { configureStore } from " @reduxjs/toolkit" ;
1
+ import { combineReducers } from ' @reduxjs/toolkit'
2
+ import { configureStore } from ' @reduxjs/toolkit'
3
3
4
- const rootReducer = combineReducers ( { } ) ;
4
+ const rootReducer = combineReducers ( { } )
5
5
6
- const store = configureStore ( { reducer : rootReducer } ) ;
6
+ const store = configureStore ( { reducer : rootReducer } )
7
7
8
- export type RootState = ReturnType < typeof rootReducer > ;
9
- export default store ;
8
+ export type RootState = ReturnType < typeof rootReducer >
9
+ export default store
Original file line number Diff line number Diff line change 1
- import React from " react" ;
2
- import ReactDOM from " react-dom" ;
3
- import { Provider } from " react-redux" ;
4
- import { Router } from " react-router-dom" ;
1
+ import React from ' react'
2
+ import ReactDOM from ' react-dom'
3
+ import { Provider } from ' react-redux'
4
+ import { Router } from ' react-router-dom'
5
5
6
- import App from " @/components/App" ;
7
- import store from " @/features" ;
8
- import history from " @/utils/history" ;
6
+ import App from ' @/components/App'
7
+ import store from ' @/features'
8
+ import history from ' @/utils/history'
9
9
10
10
ReactDOM . render (
11
11
< Provider store = { store } >
@@ -14,4 +14,4 @@ ReactDOM.render(
14
14
</ Router >
15
15
</ Provider > ,
16
16
document . getElementById ( "root" )
17
- ) ;
17
+ )
Original file line number Diff line number Diff line change 2
2
// allows you to do things like:
3
3
// expect(element).toHaveTextContent(/react/i)
4
4
// learn more: https://github.com/testing-library/jest-dom
5
- import '@testing-library/jest-dom/extend-expect' ;
5
+ import '@testing-library/jest-dom/extend-expect'
Original file line number Diff line number Diff line change 1
- import { createBrowserHistory } from " history" ;
1
+ import { createBrowserHistory } from ' history'
2
2
3
- export default createBrowserHistory ( ) ;
3
+ export default createBrowserHistory ( )
You can’t perform that action at this time.
0 commit comments