Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-frontend into feat/landing-page
  • Loading branch information
sahsisunny committed Sep 25, 2023
2 parents afa3f9f + ad4ee4b commit 90145d0
Show file tree
Hide file tree
Showing 10 changed files with 3,510 additions and 309 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.yarn
node_modules
.next
coverage
dist
next-env.d.ts
yarn.lock
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"quotes": ["error", "single"],
"semi": ["error", "always"],
"react/react-in-jsx-scope": "off",
"no-mixed-spaces-and-tabs": "off"
"no-mixed-spaces-and-tabs": "off",
"@typescript-eslint/no-var-requires": 0
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# testing
/coverage
/__tests__/__snapshots__

# next.js
/.next/
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.yarn
node_modules
.next
coverage
dist
next-env.d.ts
yarn.lock
Expand Down
10 changes: 10 additions & 0 deletions __tests__/hello.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import { render } from '@testing-library/react';
import { Hello } from '../src/app/hello';

describe('Hello', () => {
it('should render', () => {
const { container } = render(<Hello />);
expect(container).toHaveTextContent('Hello');
});
});
12 changes: 12 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const nextJest = require('next/jest');

const createJestConfig = nextJest({
dir: './',
});

const customJestConfig = {
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
testEnvironment: 'jest-environment-jsdom',
};

module.exports = createJestConfig(customJestConfig);
1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom/extend-expect';
32 changes: 22 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"lint:fix": "eslint . --fix --ext js,jsx,ts,tsx, src/",
"check:all": "yarn format:check && yarn lint:check",
"fix:all": "yarn format:fix && yarn lint:fix",
"prepare": "husky install"
"prepare": "husky install",
"test": "jest --coverage"
},
"dependencies": {
"autoprefixer": "10.4.15",
Expand All @@ -25,17 +26,28 @@
"typescript": "5.2.2"
},
"devDependencies": {
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "^14.0.0",
"@types/eslint": "^8",
"@types/node": "20.5.9",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"@types/jest": "^29.5.3",
"@types/node": "20.2.5",
"@types/react": "18.2.7",
"@types/react-dom": "18.2.4",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"eslint": "8.41.0",
"eslint-config-next": "13.4.4",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-next": "^0.0.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"prettier": "^3.0.3"
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.6.2",
"prettier": "^2.8.8",
"ts-jest": "^29.1.1"
},
"volta": {
"node": "18.14.0",
Expand Down
3 changes: 3 additions & 0 deletions src/app/hello.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import React from 'react';

export const Hello = () => <h1>Hello</h1>;
3,755 changes: 3,457 additions & 298 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 90145d0

Please sign in to comment.