diff options
| -rw-r--r-- | .github/workflows/ci.yml | 10 | ||||
| -rw-r--r-- | apps/web/package.json | 1 | ||||
| -rw-r--r-- | package.json | 3 | ||||
| -rw-r--r-- | packages/db/drizzle.ts | 2 | ||||
| -rw-r--r-- | packages/shared/package.json | 3 | ||||
| -rw-r--r-- | packages/trpc/package.json | 3 | ||||
| -rw-r--r-- | packages/trpc/testUtils.ts | 2 | ||||
| -rw-r--r-- | turbo.json | 1 |
8 files changed, 5 insertions, 20 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 127c7990..8216c7cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,16 +48,6 @@ jobs: - name: Typecheck run: pnpm typecheck - tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Setup - uses: ./tooling/github/setup - - - name: Tests - run: pnpm test open-api-spec: runs-on: ubuntu-latest steps: diff --git a/apps/web/package.json b/apps/web/package.json index d78b1d4d..ec0a3bd2 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -10,6 +10,7 @@ "build": "next build", "start": "next start", "lint": "next lint", + "test": "vitest", "typecheck": "tsc --noEmit", "format": "prettier --check . --ignore-path ../../.gitignore", "format:fix": "prettier --write . --ignore-path ../../.gitignore", diff --git a/package.json b/package.json index c9ad5633..66bfbaee 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,7 @@ "lint:fix": "turbo --no-daemon lint --continue -- --fix --cache-location node_modules/.cache/.eslintcache", "lint:ws": "pnpm dlx sherif@latest", "postinstall": "pnpm lint:ws", - "typecheck": "turbo --no-daemon typecheck", - "test": "turbo --no-daemon test --continue" + "typecheck": "turbo --no-daemon typecheck" }, "devDependencies": { "@hoarder/prettier-config": "workspace:^0.1.0", diff --git a/packages/db/drizzle.ts b/packages/db/drizzle.ts index 037f7c35..4763d9d7 100644 --- a/packages/db/drizzle.ts +++ b/packages/db/drizzle.ts @@ -12,7 +12,7 @@ export const db = drizzle(sqlite, { schema }); export function getInMemoryDB(runMigrations: boolean) { const mem = new Database(":memory:"); - const db = drizzle(mem, { schema, logger: false }); + const db = drizzle(mem, { schema, logger: true }); if (runMigrations) { migrate(db, { migrationsFolder: path.resolve(__dirname, "./drizzle") }); } diff --git a/packages/shared/package.json b/packages/shared/package.json index b5a001b9..93d5495a 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -26,8 +26,7 @@ "format:fix": "prettier . --write --ignore-path ../../.prettierignore", "lint": "eslint .", "lint:fix": "eslint . --fix", - "test": "vitest run", - "test:watch": "vitest" + "test": "vitest" }, "main": "index.ts", "eslintConfig": { diff --git a/packages/trpc/package.json b/packages/trpc/package.json index 00652b8d..0e1721f1 100644 --- a/packages/trpc/package.json +++ b/packages/trpc/package.json @@ -10,8 +10,7 @@ "format:fix": "prettier . --write --ignore-path ../../.prettierignore", "lint": "eslint .", "lint:fix": "eslint . --fix", - "test": "vitest run", - "test:watch": "vitest" + "test": "vitest" }, "dependencies": { "@hoarder/db": "workspace:*", diff --git a/packages/trpc/testUtils.ts b/packages/trpc/testUtils.ts index 6d7e6dee..23dcdb33 100644 --- a/packages/trpc/testUtils.ts +++ b/packages/trpc/testUtils.ts @@ -1,6 +1,5 @@ import { getInMemoryDB } from "@hoarder/db/drizzle"; import { users } from "@hoarder/db/schema"; -import { runQueueDBMigrations } from "@hoarder/shared/queues"; import { createCallerFactory } from "./index"; import { appRouter } from "./routers/_app"; @@ -55,7 +54,6 @@ export interface CustomTestContext { export async function buildTestContext( seedDB: boolean, ): Promise<CustomTestContext> { - runQueueDBMigrations(); const db = getTestDB(); let users: Awaited<ReturnType<typeof seedUsers>> = []; if (seedDB) { @@ -48,7 +48,6 @@ "node_modules/.cache/tsbuildinfo.json" ] }, - "test": {}, "clean": { "cache": false }, |
