Fixing jest build
All checks were successful
Anatid Blog CI Workflow / test (./backend) (push) Successful in 27s
Anatid Blog CI Workflow / test (./frontend) (push) Successful in 32s
Anatid Blog CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/anatid-blog-backend, ./backend) (push) Successful in 35s
Anatid Blog CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/anatid-blog-frontend, ./frontend) (push) Successful in 44s
Anatid Blog CI Workflow / deploy (push) Successful in 3s

This commit is contained in:
Phill Pover 2025-03-27 12:38:28 +00:00
parent 72d61a1033
commit 12761802cf
3 changed files with 3 additions and 2 deletions

View File

@ -47,5 +47,5 @@
"moduleNameMapper": { "moduleNameMapper": {
"^axios$": "axios/dist/node/axios.cjs" "^axios$": "axios/dist/node/axios.cjs"
} }
}, }
} }

View File

@ -5,6 +5,6 @@ import App from './App';
test('renders learn react link', () => { test('renders learn react link', () => {
render(<App />); render(<App />);
const linkElement = screen.getByText(/learn react/i); const linkElement = screen.getByText(/React is working/i);
expect(linkElement).toBeInTheDocument(); expect(linkElement).toBeInTheDocument();
}); });

View File

@ -20,6 +20,7 @@ function App() {
<div className="App"> <div className="App">
<header className="App-header"> <header className="App-header">
<img src={logo} className="App-logo" alt="logo" /> <img src={logo} className="App-logo" alt="logo" />
<h2>React is working</h2>
<p>{message}</p> <p>{message}</p>
</header> </header>
</div> </div>