Skip to content

Commit 52520ec

Browse files
committed
refactor: update test scripts in package.json for backend, database, song, and sounds packages to use glob pattern for improved test discovery
1 parent e76df8f commit 52520ec

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@
2020
"lint:song": "cd ./packages/song && bun run lint",
2121
"lint:sounds": "cd ./packages/sounds && bun run lint",
2222
"lint:thumbnail": "cd ./packages/thumbnail && bun run lint",
23-
"test": "bun run test:server && bun run test:web && bun run test:database && bun run test:song && bun run test:sounds && bun run test:thumbnail",
24-
"test:server": "cd ./packages/backend && bun run test",
25-
"test:web": "cd ./apps/frontend && bun run test",
26-
"test:database": "cd ./packages/database && bun run test",
27-
"test:song": "cd ./packages/song && bun run test",
28-
"test:sounds": "cd ./packages/sounds && bun run test",
29-
"test:thumbnail": "cd ./packages/thumbnail && bun run test",
23+
"test": "bun test **/*.spec.ts --coverage",
3024
"cy:open": "bun run test:cy",
3125
"test:cy": "cd ./tests && bun run cy:open",
3226
"prettier": "prettier --write .",

packages/backend/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"start:debug": "NODE_ENV=development tsc-watch --onSuccess \"bun . --inspect\"",
1616
"start:prod": "NODE_ENV=production bun dist/main.js",
1717
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
18-
"test": "bun test",
19-
"test:watch": "bun test --watch",
20-
"test:cov": "bun test --coverage",
18+
"test": "bun test **/*.spec.ts",
19+
"test:watch": "bun test **/*.spec.ts --watch",
20+
"test:cov": "bun test **/*.spec.ts --coverage",
2121
"test:debug": "bun --inspect-brk --runInBand",
22-
"test:e2e": "bun test ./test/app.e2e-spec.ts"
22+
"test:e2e": "bun test **/*.spec.ts ./test/app.e2e-spec.ts"
2323
},
2424
"dependencies": {
2525
"@aws-sdk/client-s3": "3.717.0",

packages/database/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly",
1919
"clean": "rm -rf dist",
2020
"lint": "eslint \"src/**/*.ts\" --fix",
21-
"test": "bun test"
21+
"test": "bun test **/*.spec.ts"
2222
},
2323
"devDependencies": {
2424
"@types/bun": "latest",

packages/song/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build:types": "tsc --project tsconfig.build.json",
1818
"clean": "rm -rf dist",
1919
"lint": "eslint \"src/**/*.ts\" --fix",
20-
"test": "bun test"
20+
"test": "bun test **/*.spec.ts"
2121
},
2222
"devDependencies": {
2323
"@types/bun": "latest",

packages/sounds/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build:types": "tsc --project tsconfig.build.json",
1818
"clean": "rm -rf dist",
1919
"lint": "eslint \"src/**/*.ts\" --fix",
20-
"test": "bun test"
20+
"test": "bun test **/*.spec.ts"
2121
},
2222
"devDependencies": {
2323
"@types/bun": "latest",

0 commit comments

Comments
 (0)