Skip to content

Commit c7d115d

Browse files
committed
fix all the configs and get things working again
1 parent cde932f commit c7d115d

37 files changed

+8957
-15597
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,4 +221,4 @@ src/ui/next-env.d.ts
221221
!package.json
222222
!package-lock.json
223223
!.eslintrc.json
224-
!tsconfig.json
224+
!tsconfig.*.json

package-lock.json

Lines changed: 8910 additions & 2553 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,49 @@
66
"dev": "next dev src/ui",
77
"build": "next build src/ui",
88
"lint": "next lint src/ui",
9-
"type-check": "tsc -p src/ui/tsconfig.json --noEmit",
9+
"type-check": "tsc -p src/ui/tsconfig.json --noEmit && tsc -p src/ui/tsconfig.test.json --noEmit && tsc -p src/ui/tsconfig.cypress.json --noEmit",
1010
"format": "prettier --ignore-path src/ui/.prettierignore --write \"src/ui/**/*.+(js|ts|jsx|tsx|json)\"",
11-
"prepare": "husky install"
11+
"prepare": "husky install",
12+
"test": "jest --config src/ui/jest.config.js --passWithNoTests src/ui",
13+
"test:unit": "jest --config src/ui/jest.config.js --passWithNoTests src/ui/tests/unit",
14+
"test:integration": "jest --config src/ui/jest.config.js --passWithNoTests src/ui/tests/integration"
1215
},
1316
"dependencies": {
1417
"next": "15.3.2",
1518
"react": "^18.2.0",
1619
"react-dom": "^18.2.0"
1720
},
1821
"devDependencies": {
22+
"@testing-library/jest-dom": "^5.16.5",
23+
"@testing-library/react": "^16.0.0",
24+
"@testing-library/user-event": "^13.5.0",
25+
"@types/jest": "^27.5.2",
1926
"@eslint/eslintrc": "^3",
2027
"@types/node": "^22",
2128
"@types/react": "^18.0.28",
2229
"@types/react-dom": "^18.0.11",
30+
"@types/testing-library__jest-dom": "^5.14.9",
2331
"@typescript-eslint/eslint-plugin": "^8.33.1",
2432
"@typescript-eslint/parser": "^8.33.1",
33+
"cypress": "^13.13.3",
2534
"eslint": "^9.0.0",
2635
"eslint-config-next": "15.3.2",
2736
"eslint-config-prettier": "^8.5.0",
2837
"eslint-plugin-import": "^2.29.1",
38+
"eslint-plugin-jest": "^28.11.0",
2939
"eslint-plugin-jsx-a11y": "^6.6.1",
3040
"eslint-plugin-no-secrets": "^1.0.2",
3141
"eslint-plugin-prettier": "^5.4.0",
3242
"eslint-plugin-react": "^7.31.10",
3343
"eslint-plugin-react-hooks": "^5.2.0",
3444
"husky": "^9.1.7",
45+
"jest": "^29.7.0",
46+
"jest-coverage-badges": "^1.1.2",
47+
"jest-environment-jsdom": "^29.7.0",
48+
"jest-runner-groups": "^2.2.0",
49+
"jest-transform-stub": "^2.0.0",
3550
"prettier": "^3.5.3",
51+
"ts-jest": "^29.2.4",
3652
"typescript": "^5"
3753
},
3854
"lint-staged": {

src/ui/.eslintignore

Whitespace-only changes.

src/ui/.eslintrc.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"env": {
33
"browser": true,
44
"es2024": true,
5+
"jest": true,
56
"node": true
67
},
78
"extends": [
@@ -13,24 +14,20 @@
1314
"plugin:prettier/recommended"
1415
],
1516
"ignorePatterns": [".vscode"],
16-
"overrides": [
17-
{
18-
"files": ["*.mjs"],
19-
"parser": "espree", // Use the default JavaScript parser for `.mjs` files
20-
"parserOptions": {
21-
"sourceType": "module"
22-
}
23-
}
24-
],
2517
"parser": "@typescript-eslint/parser",
2618
"parserOptions": {
2719
"ecmaFeatures": {
2820
"jsx": true
2921
},
3022
"ecmaVersion": 2024,
23+
"project": [
24+
"src/ui/tsconfig.json",
25+
"src/ui/tsconfig.test.json",
26+
"src/ui/tsconfig.cypress.json"
27+
],
3128
"sourceType": "module"
3229
},
33-
"plugins": ["@typescript-eslint", "import", "no-secrets", "react"],
30+
"plugins": ["@typescript-eslint", "import", "jest", "no-secrets", "react"],
3431
"root": true,
3532
"rules": {
3633
"complexity": ["warn", { "max": 8 }],

src/ui/app/favicon.ico

-25.3 KB
Binary file not shown.

src/ui/app/globals.css

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/ui/app/layout.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import type { Metadata } from 'next';
2-
import './globals.css';
32

43
export const metadata: Metadata = {
5-
title: 'Create Next App',
6-
description: 'Generated by create next app',
4+
title: 'GuideLLM',
5+
description: 'LLM Benchmarking Tool',
76
};
87

9-
export default function RootLayout({ children }: { children: React.ReactNode }) {
8+
export default function RootLayout({
9+
children,
10+
}: Readonly<{
11+
children: React.ReactNode;
12+
}>) {
1013
return (
1114
<html lang="en">
1215
<body>{children}</body>

src/ui/app/page.module.css

Lines changed: 0 additions & 168 deletions
This file was deleted.

0 commit comments

Comments
 (0)