Skip to content

Commit

Permalink
updated the code
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunmankar committed Dec 9, 2024
1 parent ebe9c76 commit c27e574
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 5 deletions.
204 changes: 200 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test": "react-scripts test --ci --silent --coverage --passWithNoTests",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"dependencies": {
"@testing-library/react": "^16.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "^5.0.1"
Expand Down Expand Up @@ -42,6 +43,7 @@
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@testing-library/jest-dom": "^6.6.3",
"gh-pages": "^6.2.0"
}
}
9 changes: 9 additions & 0 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/react';
import App from './App';

test('renders Developer Community link', () => {
render(<App />);
const linkElement = screen.getByText(/Developer Community/i);
expect(linkElement).toBeInTheDocument();
});

0 comments on commit c27e574

Please sign in to comment.