File tree Expand file tree Collapse file tree 3 files changed +251
-1
lines changed
Expand file tree Collapse file tree 3 files changed +251
-1
lines changed Original file line number Diff line number Diff line change 3838
3939 - name : 🚀 Run start command
4040 run : pnpm start
41+
42+ - name : 🧪 Run tests
43+ run : pnpm test
Original file line number Diff line number Diff line change 1717 "format:fix" : " prettier --ignore-path .gitignore --write \" **/*.+(js|ts|json)\" " ,
1818 "test" : " jest" ,
1919 "test:watch" : " jest --watch" ,
20- "test:problem" : " ts-node src/scripts/test-problem.ts"
20+ "test:problem" : " ts-node src/scripts/test-problem.ts" ,
21+ "ci:check" : " pnpm lint && pnpm format && pnpm build && pnpm test && pnpm start" ,
22+ "prepare" : " husky install"
2123 },
2224 "repository" : {
2325 "type" : " git" ,
4143 "@types/node" : " ^24.1.0" ,
4244 "eslint" : " ^9.31.0" ,
4345 "globals" : " ^16.3.0" ,
46+ "husky" : " ^9.1.7" ,
4447 "jest" : " ^30.0.5" ,
48+ "lint-staged" : " ^16.1.2" ,
4549 "prettier" : " ^3.6.2" ,
4650 "ts-jest" : " ^29.4.0" ,
4751 "ts-node" : " ^10.9.2" ,
6771 "moduleNameMapper" : {
6872 "^@/(.*)$" : " <rootDir>/src/$1"
6973 }
74+ },
75+ "lint-staged" : {
76+ "**/*.{js,ts,json}" : [
77+ " prettier --write" ,
78+ " eslint --fix"
79+ ],
80+ "src/**/*.ts" : [
81+ " pnpm test"
82+ ]
7083 }
7184}
You can’t perform that action at this time.
0 commit comments