Skip to content

Commit 7f4f1ca

Browse files
committed
fix: configure Jest to pass with no tests
- Added --passWithNoTests flag to all test scripts - Added test script to web and database packages - Fixes CI/CD test failures
1 parent f0fd0ac commit 7f4f1ca

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

apps/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsc",
99
"start": "node dist/index.js",
1010
"lint": "eslint . --ext .ts",
11-
"test": "jest"
11+
"test": "jest --passWithNoTests"
1212
},
1313
"dependencies": {
1414
"@prisma/client": "^5.7.0",

apps/web/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"test": "jest --passWithNoTests"
1011
},
1112
"dependencies": {
1213
"react": "^18",

packages/auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsc",
99
"dev": "tsc --watch",
1010
"lint": "eslint . --ext .ts",
11-
"test": "jest"
11+
"test": "jest --passWithNoTests"
1212
},
1313
"dependencies": {
1414
"@studysync/database": "*",

packages/database/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"scripts": {
88
"build": "tsc",
99
"lint": "eslint . --ext .ts",
10+
"test": "jest --passWithNoTests",
1011
"db:generate": "prisma generate",
1112
"db:migrate": "prisma migrate dev",
1213
"db:push": "prisma db push",

0 commit comments

Comments
 (0)