Skip to content

Commit 171cd45

Browse files
authored
feat: bump deps and add e2e test cases (#930)
* test: more e2e test * chore: deps * test: more e2e test case * fix build error
1 parent 1d0a9c2 commit 171cd45

8 files changed

+1468
-1175
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ If you only want to contribute to our UI, just fill in database URL, which can b
5151

5252
Simply run `pnpm dev` will do the job.
5353

54+
### Run E2E test
55+
56+
Start dev server first, then run `pnpm test:e2e`
57+
5458
## Contributing
5559

5660
You too can help us improve our project by suggesting features, bug report, etc. by [opening an issue](https://github.com/programming-in-th/programming.in.th/issues), or [create a pull request](https://github.com/programming-in-th/programming.in.th/pulls). If you want to contribute to submission related module (e.g. realtime view) and need live data, please, don't hesitate to contact us.

next.config.mjs

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ const withBundleAnalyzer = bundleAnalyzer({
99
export default withBundleAnalyzer({
1010
reactStrictMode: true,
1111
images: {
12-
domains: ['lh3.googleusercontent.com', 'avatars.githubusercontent.com']
12+
remotePatterns: [
13+
{ protocol: 'https', hostname: 'lh3.googleusercontent.com' },
14+
{
15+
protocol: 'https',
16+
hostname: 'avatars.githubusercontent.com'
17+
}
18+
]
1319
},
1420

1521
webpack(config) {

package.json

+41-41
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "programming.in.th",
33
"private": true,
4-
"packageManager": "pnpm@8.8.0",
4+
"packageManager": "pnpm@8.10.2",
55
"engines": {
6-
"node": "^18.12"
6+
"node": "^18.17"
77
},
88
"lint-staged": {
99
"*.{json,md,yaml,css,scss}": [
@@ -18,7 +18,7 @@
1818
},
1919
"scripts": {
2020
"preinstall": "npx only-allow pnpm",
21-
"dev": "next dev",
21+
"dev": "next dev --turbo",
2222
"build": "prisma generate && next build",
2323
"start": "next start",
2424
"lint": "next lint",
@@ -31,51 +31,51 @@
3131
"test:e2e": "playwright test"
3232
},
3333
"dependencies": {
34-
"@aws-sdk/client-s3": "3.421.0",
35-
"@aws-sdk/s3-request-presigner": "3.421.0",
34+
"@aws-sdk/client-s3": "3.441.0",
35+
"@aws-sdk/s3-request-presigner": "3.441.0",
3636
"@codemirror/lang-cpp": "6.0.2",
3737
"@codemirror/lang-java": "6.0.1",
3838
"@codemirror/lang-python": "6.1.3",
3939
"@codemirror/lang-rust": "6.0.1",
40-
"@codemirror/language": "6.9.1",
40+
"@codemirror/language": "6.9.2",
4141
"@codemirror/legacy-modes": "6.3.3",
42-
"@codemirror/view": "6.21.0",
43-
"@dnd-kit/core": "6.0.8",
42+
"@codemirror/view": "6.22.0",
43+
"@dnd-kit/core": "6.1.0",
4444
"@dnd-kit/modifiers": "6.0.1",
4545
"@dnd-kit/sortable": "7.0.2",
46-
"@dnd-kit/utilities": "3.2.1",
46+
"@dnd-kit/utilities": "3.2.2",
4747
"@headlessui/react": "1.7.17",
4848
"@heroicons/react": "2.0.18",
4949
"@next-auth/prisma-adapter": "1.0.7",
50-
"@next/bundle-analyzer": "13.5.3",
51-
"@prisma/client": "5.3.1",
52-
"@supabase/realtime-js": "2.8.0",
53-
"@tanstack/react-table": "8.10.3",
54-
"@uiw/codemirror-theme-dracula": "4.21.18",
55-
"@uiw/react-codemirror": "4.21.18",
50+
"@next/bundle-analyzer": "14.0.1",
51+
"@prisma/client": "5.5.2",
52+
"@supabase/realtime-js": "2.8.4",
53+
"@tanstack/react-table": "8.10.7",
54+
"@uiw/codemirror-theme-dracula": "4.21.20",
55+
"@uiw/react-codemirror": "4.21.20",
5656
"@vercel/analytics": "1.1.1",
5757
"@visx/group": "3.3.0",
5858
"@visx/shape": "3.3.0",
5959
"@visx/text": "3.3.0",
60-
"axios": "1.5.1",
60+
"axios": "1.6.0",
6161
"clsx": "2.0.0",
62-
"concurrently": "8.2.1",
62+
"concurrently": "8.2.2",
6363
"csstype": "3.1.2",
6464
"dayjs": "1.11.10",
6565
"framer-motion": "10.16.4",
6666
"fuse.js": "6.6.2",
67-
"katex": "0.16.8",
68-
"next": "14.0.0",
69-
"next-auth": "4.24.3",
67+
"katex": "0.16.9",
68+
"next": "14.0.1",
69+
"next-auth": "4.24.4",
7070
"next-mdx-remote": "4.4.1",
7171
"next-themes": "0.2.1",
7272
"prism-react-renderer": "1.3.5",
7373
"prismjs": "1.29.0",
7474
"react": "18.2.0",
75-
"react-countup": "6.4.2",
75+
"react-countup": "6.5.0",
7676
"react-dom": "18.2.0",
7777
"react-dropzone": "14.2.3",
78-
"react-hook-form": "7.46.2",
78+
"react-hook-form": "7.48.2",
7979
"react-hot-toast": "2.4.1",
8080
"react-infinite-scroll-component": "6.1.0",
8181
"react-table": "7.8.0",
@@ -88,39 +88,39 @@
8888
"server-only": "0.0.1",
8989
"sharp": "0.32.6",
9090
"swr": "2.2.4",
91-
"zod": "3.22.3"
91+
"zod": "3.22.4"
9292
},
9393
"devDependencies": {
94-
"@octokit/types": "12.0.0",
95-
"@playwright/test": "1.38.1",
94+
"@octokit/types": "12.1.1",
95+
"@playwright/test": "1.39.0",
9696
"@tailwindcss/typography": "0.5.10",
97-
"@testing-library/jest-dom": "6.1.3",
97+
"@testing-library/jest-dom": "6.1.4",
9898
"@testing-library/react": "14.0.0",
99-
"@types/node": "18.18.1",
100-
"@types/react": "18.2.23",
101-
"@types/react-table": "7.7.16",
102-
"@typescript-eslint/eslint-plugin": "6.7.3",
103-
"@typescript-eslint/parser": "6.7.3",
104-
"@vitejs/plugin-react": "4.1.0",
99+
"@types/node": "18.18.8",
100+
"@types/react": "18.2.36",
101+
"@types/react-table": "7.7.17",
102+
"@typescript-eslint/eslint-plugin": "6.10.0",
103+
"@typescript-eslint/parser": "6.10.0",
104+
"@vitejs/plugin-react": "4.1.1",
105105
"@vitest/coverage-v8": "0.34.6",
106106
"autoprefixer": "10.4.16",
107-
"eslint": "8.50.0",
108-
"eslint-config-next": "14.0.0",
107+
"eslint": "8.53.0",
108+
"eslint-config-next": "14.0.1",
109109
"eslint-config-prettier": "9.0.0",
110-
"eslint-plugin-import": "2.28.1",
111-
"eslint-plugin-prettier": "5.0.0",
110+
"eslint-plugin-import": "2.29.0",
111+
"eslint-plugin-prettier": "5.0.1",
112112
"eslint-plugin-react": "7.33.2",
113113
"eslint-plugin-unused-imports": "3.0.0",
114114
"husky": "8.0.3",
115115
"jsdom": "22.1.0",
116-
"lint-staged": "14.0.1",
116+
"lint-staged": "15.0.2",
117117
"postcss": "8.4.31",
118118
"prettier": "3.0.3",
119-
"prettier-plugin-tailwindcss": "0.5.4",
120-
"prisma": "5.3.1",
119+
"prettier-plugin-tailwindcss": "0.5.6",
120+
"prisma": "5.5.2",
121121
"prisma-dbml-generator": "0.10.0",
122-
"sass": "1.68.0",
123-
"tailwindcss": "3.3.3",
122+
"sass": "1.69.5",
123+
"tailwindcss": "3.3.5",
124124
"ts-node": "10.9.1",
125125
"typescript": "5.2.2",
126126
"vitest": "0.34.6"

playwright.config.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ const baseURL = process.env.BASE_URL || 'http://localhost:3000'
44

55
export default defineConfig({
66
testDir: 'tests',
7-
webServer: process.env.CI
8-
? undefined
9-
: {
10-
command: 'pnpm run dev',
11-
url: baseURL,
12-
reuseExistingServer: true
13-
},
7+
webServer: undefined,
148
workers: process.env.CI ? 1 : undefined,
159
use: {
1610
baseURL

0 commit comments

Comments
 (0)