Skip to content

Commit

Permalink
chore: Update package.json and turbo.json for test:watch command
Browse files Browse the repository at this point in the history
  • Loading branch information
myty committed Jun 21, 2024
1 parent 070fa73 commit 94672c6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/func/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"dev": "cd ./src/CentralPennIncidentsFunc && func start --csharp",
"serve": "pnpm dev",
"build": "dotnet build ./src/CentralPennIncidentsFunc -c Release",
"restore": "cd ../../ && dotnet clean && dotnet restore"
"restore": "cd ../../ && dotnet clean && dotnet restore",
"test": "dotnet test ./tests/CentralPennIncidentsFunc.Tests",
"test:watch": "dotnet watch test --project ./tests/CentralPennIncidentsFunc.Tests"
},
"dependencies": {
"azure-functions-core-tools": "^4.0.5801"
Expand Down
3 changes: 2 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"coverage": "vitest run --coverage",
"coverage-report": "vitest run --coverage && codecov --disable=gcov",
"lint": "tsc --noEmit && biome check --apply ./src",
"test": "vitest"
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@react-leaflet/core": "^2.1.0",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "turbo run build",
"serve": "turbo run serve azurite",
"test": "turbo run test",
"test:watch": "turbo run test:watch",
"lint": "turbo run lint",
"dev": "turbo run dev azurite",
"dev:frontend": "turbo run dev:frontend azurite",
Expand Down
7 changes: 7 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
"build"
]
},
"test:watch": {
"cache": false,
"persistent": true,
"dependsOn": [
"build"
]
},
"lint": {
"outputs": []
},
Expand Down

0 comments on commit 94672c6

Please sign in to comment.