diff --git a/server/.github/workflows/tests.yml b/server/.github/workflows/tests.yml index dd2d06f13..88fa49223 100644 --- a/server/.github/workflows/tests.yml +++ b/server/.github/workflows/tests.yml @@ -42,7 +42,7 @@ jobs: run: pnpm lint - name: Run Tests - run: pnpm fulltest + run: pnpm test - name: Upload Coverage if: always() diff --git a/server/package.json b/server/package.json index e2f81fb2a..6161b9438 100644 --- a/server/package.json +++ b/server/package.json @@ -4,7 +4,7 @@ "description": "A score tracking server.", "main": "js/index.js", "scripts": { - "fulltest": "tap", + "test": "tap", "watchtest": "tap --watch", "build": "tsc --project tsconfig.build.json", "lint": "eslint ./src --ext .ts --fix", diff --git a/server/src/server/router/ir/usc/router.test.ts b/server/src/server/router/ir/usc/router.test.ts index 5fd3f92cd..984a016b9 100644 --- a/server/src/server/router/ir/usc/router.test.ts +++ b/server/src/server/router/ir/usc/router.test.ts @@ -4,7 +4,7 @@ import { CloseAllConnections } from "../../../../test-utils/close-connections"; import mockApi from "../../../../test-utils/mock-api"; import ResetDBState, { ResetCDN } from "../../../../test-utils/resets"; import deepmerge from "deepmerge"; -import { PBScoreDocument, ScoreDocument } from "tachi-common"; +import { PBScoreDocument, ScoreDocument, PrivateUserDocument } from "tachi-common"; import { GetKTDataBuffer } from "../../../../test-utils/test-data"; import { CDNRetrieve } from "../../../../lib/cdn/cdn"; @@ -172,7 +172,7 @@ t.test("GET /ir/usc/:chartHash/record", (t) => { await db.scores.insert({ scoreID: "usc_score_pb", scoreMeta: { noteMod: "NORMAL", gaugeMod: "HARD" }, - } as any); + } as ScoreDocument); const res = await mockApi .get("/ir/usc/charts/USC_CHART_HASH/record") @@ -267,7 +267,7 @@ t.test("GET /charts/:chartHash/leaderboard", (t) => { await db.users.insert({ id: 2, username: "not_zkldi", - } as any); + } as PrivateUserDocument); await db.scores.insert([ { @@ -278,7 +278,7 @@ t.test("GET /charts/:chartHash/leaderboard", (t) => { scoreID: "other_usc_score_pb", scoreMeta: { noteMod: "NORMAL", gaugeMod: "HARD" }, }, - ] as any); + ] as ScoreDocument[]); const res = await mockApi .get("/ir/usc/charts/USC_CHART_HASH/leaderboard?mode=best&n=2")