Skip to content

Commit

Permalink
52 GitHub action set up (#88)
Browse files Browse the repository at this point in the history
add Dummy test

---------

Co-authored-by: Maris <[email protected]>
Co-authored-by: Xunzhou Ye <[email protected]>
  • Loading branch information
3 people authored Jan 31, 2024
1 parent d329566 commit 73eb505
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, it } from 'vitest';
import { render, screen } from '@testing-library/react';
import { MemoryRouter } from 'react-router-dom';

import { WrappedApp, App } from './App';
import { WrappedApp, App } from './Dummy';

describe('App', () => {
it('Renders hello world', () => {
Expand Down
20 changes: 20 additions & 0 deletions src/client/src/Dummy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { HashRouter, Route, Routes } from 'react-router-dom';
import Home from './pages/Home';
import NotFound from './pages/NotFound';

export function App() {
return (
<Routes>
<Route path="/" element={<Home />} />
<Route path="*" element={<NotFound />} />
</Routes>
);
}

export function WrappedApp() {
return (
<HashRouter>
<App />
</HashRouter>
);
}

0 comments on commit 73eb505

Please sign in to comment.