From 178fc719008f1c64c9da41fa354570083c49825c Mon Sep 17 00:00:00 2001 From: avallete Date: Thu, 16 Jan 2025 09:45:50 +0900 Subject: [PATCH] chore: add test coverage to postgrest-js --- .github/workflows/ci.yml | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 469adac6..4412210f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,3 +23,6 @@ jobs: - run: | npm clean-install npm run test + + - name: Coveralls + uses: coverallsapp/github-action@v2 diff --git a/package.json b/package.json index e440b5ab..ab56b8a7 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "docs": "typedoc src/index.ts --out docs/v2", "docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts", "test": "run-s format:check test:types db:clean db:run test:run db:clean && node test/smoke.cjs && node test/smoke.mjs", - "test:run": "jest --runInBand", + "test:run": "jest --runInBand --coverage", "test:update": "run-s db:clean db:run && jest --runInBand --updateSnapshot && run-s db:clean", "test:types": "run-s build && tsd --files 'test/**/*.test-d.ts'", "db:clean": "cd test/db && docker compose down --volumes",