1- import { render } from ' @testing-library/react' ;
2- import { MemoryRouter } from ' react-router-dom' ;
3- import { describe , expect , it } from ' vitest' ;
4- import App from ' ../App' ;
5- import MinificationBenchmarksPage from ' ../pages/MinificationBenchmarksPage' ;
6- import NpmPackagesPage from ' ../pages/NpmPackagesPage' ;
7- import RolldownStatsPage from ' ../pages/RolldownStatsPage' ;
1+ import { render } from " @testing-library/react" ;
2+ import { MemoryRouter } from " react-router-dom" ;
3+ import { describe , expect , it } from " vitest" ;
4+ import App from " ../App" ;
5+ import MinificationBenchmarksPage from " ../pages/MinificationBenchmarksPage" ;
6+ import NpmPackagesPage from " ../pages/NpmPackagesPage" ;
7+ import RolldownStatsPage from " ../pages/RolldownStatsPage" ;
88
9- describe ( ' Pages rendering tests' , ( ) => {
10- it ( ' should render App component without errors' , ( ) => {
9+ describe ( " Pages rendering tests" , ( ) => {
10+ it ( " should render App component without errors" , ( ) => {
1111 const { container } = render (
12- < MemoryRouter initialEntries = { [ '/' ] } >
12+ < MemoryRouter initialEntries = { [ "/" ] } >
1313 < App />
1414 </ MemoryRouter > ,
1515 ) ;
1616 expect ( container ) . toBeTruthy ( ) ;
1717 } ) ;
1818
19- it ( ' should render RolldownStatsPage without errors' , ( ) => {
19+ it ( " should render RolldownStatsPage without errors" , ( ) => {
2020 const { container } = render (
2121 < MemoryRouter >
2222 < RolldownStatsPage />
@@ -25,7 +25,7 @@ describe('Pages rendering tests', () => {
2525 expect ( container ) . toBeTruthy ( ) ;
2626 } ) ;
2727
28- it ( ' should render MinificationBenchmarksPage without errors' , ( ) => {
28+ it ( " should render MinificationBenchmarksPage without errors" , ( ) => {
2929 const { container } = render (
3030 < MemoryRouter >
3131 < MinificationBenchmarksPage />
@@ -34,7 +34,7 @@ describe('Pages rendering tests', () => {
3434 expect ( container ) . toBeTruthy ( ) ;
3535 } ) ;
3636
37- it ( ' should render NpmPackagesPage without errors' , ( ) => {
37+ it ( " should render NpmPackagesPage without errors" , ( ) => {
3838 const { container } = render (
3939 < MemoryRouter >
4040 < NpmPackagesPage />
@@ -43,10 +43,10 @@ describe('Pages rendering tests', () => {
4343 expect ( container ) . toBeTruthy ( ) ;
4444 } ) ;
4545
46- it ( ' should render all routes without errors' , ( ) => {
47- const routes = [ '/' , ' /minification' , ' /npm-packages' ] ;
46+ it ( " should render all routes without errors" , ( ) => {
47+ const routes = [ "/" , " /minification" , " /npm-packages" ] ;
4848
49- routes . forEach ( route => {
49+ routes . forEach ( ( route ) => {
5050 const { container } = render (
5151 < MemoryRouter initialEntries = { [ route ] } >
5252 < App />
0 commit comments