Skip to content

Commit d777115

Browse files
authored
Merge pull request #9 from nirukk52/improved-prepush-checks
Improved prepush checks
2 parents a76153d + 8e2ae2e commit d777115

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

.husky/pre-push

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Run all tests across workspace before push
2+
pnpm -r --if-present test

apps/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
"dev": "next dev --turbo",
106106
"e2e": "pnpm exec playwright test --ui",
107107
"e2e:ci": "pnpm exec playwright install && pnpm exec playwright test",
108+
"test": "pnpm exec playwright install && pnpm exec playwright test",
108109
"lint": "next lint",
109110
"shadcn-ui": "pnpm dlx shadcn@latest",
110111
"start": "next start",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"check": "biome check",
1010
"clean": "turbo clean",
1111
"format": "biome format . --write",
12+
"test": "pnpm -r --if-present test",
1213
"prepare": "husky"
1314
},
1415
"engines": {
@@ -20,7 +21,7 @@
2021
"@repo/tsconfig": "workspace:*",
2122
"@types/node": "^24.7.2",
2223
"dotenv-cli": "^10.0.0",
23-
"husky": "^9.1.6",
24+
"husky": "^9.1.7",
2425
"turbo": "^2.5.8",
2526
"typescript": "5.9.3"
2627
},

packages/payments/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"name": "@repo/payments",
3030
"scripts": {
3131
"type-check": "tsc --noEmit",
32+
"test": "pnpm run test:webhook",
3233
"test:webhook": "tsx ./provider/dodopayments/test-webhook.ts"
3334
},
3435
"types": "./**/.ts",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)