Skip to content

Commit 936f5b7

Browse files
committed
[ui] run type checking on CI
1 parent 3e05db7 commit 936f5b7

File tree

3 files changed

+1795
-6059
lines changed

3 files changed

+1795
-6059
lines changed

.github/workflows/ui-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
command: yarn --cwd quickwit-ui lint
4141
- name: Check formatting
4242
command: yarn --cwd quickwit-ui check-formatting
43+
- name: Check type consistency
44+
command: yarn --cwd quickwit-ui type
4345
- name: Unit Test
4446
command: yarn --cwd quickwit-ui test
4547
services:

quickwit/quickwit-ui/package.json

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"license": "Apache-2.0",
55
"private": true,
66
"dependencies": {
7+
"@babel/core": "7.28.5",
8+
"@babel/runtime": "7.28.4",
79
"@biomejs/biome": "2.3.5",
810
"@emotion/react": "11.11.1",
911
"@emotion/styled": "11.11.0",
@@ -13,23 +15,33 @@
1315
"@mui/system": "5.11.2",
1416
"@mui/x-charts": "7.3.2",
1517
"@mui/x-date-pickers": "5.0.12",
16-
"@types/jest": "29.5.6",
18+
"@testing-library/jest-dom": "6.9.1",
19+
"@testing-library/react": "12.1.5",
20+
"@testing-library/user-event": "14.6.1",
21+
"@types/jest": "30.0.0",
1722
"@types/node": "20.8.7",
1823
"@types/react": "17.0.65",
1924
"@types/react-dom": "17.0.18",
2025
"@types/swagger-ui-react": "4.18.2",
2126
"@typescript-eslint/eslint-plugin": "6.8.0",
2227
"@typescript-eslint/parser": "6.8.0",
28+
"babel-jest": "30.2.0",
29+
"babel-preset-react-app": "10.1.0",
30+
"cypress": "13.3.2",
2331
"dayjs": "1.11.7",
32+
"eslint": "8.3.0",
33+
"eslint-config-react-app": "7.0.1",
34+
"jest": "30.2.0",
35+
"jest-environment-jsdom": "30.2.0",
36+
"jest-transform-stub": "2.0.0",
2437
"monaco-editor": "0.34.1",
2538
"monaco-editor-webpack-plugin": "7.1.0",
2639
"react": "17.0.2",
27-
"react-app-rewired": "2.2.1",
40+
"react-app-polyfill": "3.0.0",
2841
"react-dom": "17.0.2",
2942
"react-monaco-editor": "0.50.1",
3043
"react-number-format": "4.9.4",
3144
"react-router-dom": "6.6.1",
32-
"react-scripts": "5.0.1",
3345
"styled-components": "5.3.6",
3446
"styled-icons": "10.47.0",
3547
"swagger-ui-react": "5.9.0",
@@ -44,44 +56,17 @@
4456
"scripts": {
4557
"start": "vite",
4658
"build": "vite build --outDir build",
47-
"test": "react-app-rewired test",
48-
"eject": "react-app-rewired eject",
59+
"test": "jest",
4960
"lint": "eslint . --ext .ts",
5061
"check-formatting": "biome check",
5162
"format": "biome check --write",
63+
"type": "tsc",
5264
"e2e-test": "cypress run"
5365
},
5466
"eslintConfig": {
5567
"extends": [
5668
"react-app",
5769
"react-app/jest"
5870
]
59-
},
60-
"browserslist": {
61-
"production": [
62-
">0.2%",
63-
"not dead",
64-
"not op_mini all"
65-
],
66-
"development": [
67-
"last 1 chrome version",
68-
"last 1 firefox version",
69-
"last 1 safari version"
70-
]
71-
},
72-
"devDependencies": {
73-
"@testing-library/jest-dom": "6.1.4",
74-
"@testing-library/react": "12.1.5",
75-
"@testing-library/user-event": "14.5.1",
76-
"cypress": "13.3.2",
77-
"jest": "29.7.0",
78-
"ts-jest": "29.1.1"
79-
},
80-
"jest": {
81-
"moduleNameMapper": {
82-
"monaco-editor": "<rootDir>/mocks/monacoMock.js",
83-
"swagger-ui-react": "<rootDir>/mocks/swaggerUIMock.js",
84-
"@mui/x-charts": "<rootDir>/mocks/x-charts.js"
85-
}
8671
}
8772
}

0 commit comments

Comments
 (0)