Skip to content

Commit

Permalink
Add placeholder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xenosf committed Nov 5, 2024
1 parent e0518dc commit f351d84
Show file tree
Hide file tree
Showing 10 changed files with 11,240 additions and 1,510 deletions.
6 changes: 3 additions & 3 deletions client/src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { render, screen } from "@testing-library/react";
import App from "./App";
import { BrowserRouter } from "react-router-dom";

test('renders "PeerPrep" toolbar', () => {
test('renders "PeerPrep" text (in toolbar)', () => {
render(
<BrowserRouter>
<App />
</BrowserRouter>
);
const toolbar = screen.getByText(/PeerPrep/i);
expect(toolbar).toBeInTheDocument();
const peerprep = screen.getByText(/PeerPrep/i);
expect(peerprep).toBeInTheDocument();
});
4,236 changes: 3,745 additions & 491 deletions server/matching-service/package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion server/matching-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "jest",
"serve": "node server.js",
"start": "node server.js",
"dev": "nodemon server.js"
Expand All @@ -21,6 +21,7 @@
"socket.io": "^4.8.0"
},
"devDependencies": {
"jest": "^29.7.0",
"nodemon": "^3.1.4"
}
}
4 changes: 4 additions & 0 deletions server/matching-service/server.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

test('placeholder test', () => {
expect(true).toBe(true)
})
Loading

0 comments on commit f351d84

Please sign in to comment.