From 4bc09dbd7526e2716f54158ab68939658c9ce638 Mon Sep 17 00:00:00 2001 From: Gabriele Toselli Date: Mon, 8 Apr 2024 10:31:10 +0200 Subject: [PATCH] chore: add test:ci script --- .github/workflows/node.js.yml | 2 +- package.json | 1 + packages/ddd-toolkit/package.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 281d7a0..fe66e7c 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -37,7 +37,7 @@ jobs: run: pnpm run build - name: Test - run: pnpm run test:coverage + run: pnpm run test:ci - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 diff --git a/package.json b/package.json index e8ef325..271b8ea 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "scripts": { "build": "pnpm run -r build", "test": "pnpm run -r test", + "test:ci": "pnpm run -r test:ci", "test:coverage": "pnpm run -r test:coverage", "prepare": "husky install", "check": "pnpm run -r check", diff --git a/packages/ddd-toolkit/package.json b/packages/ddd-toolkit/package.json index 4728787..2758b88 100644 --- a/packages/ddd-toolkit/package.json +++ b/packages/ddd-toolkit/package.json @@ -10,6 +10,7 @@ "scripts": { "build": "rimraf dist && tsc --project tsconfig.build.json", "test": "jest", + "test:ci": "jest --coverage --runInBand", "test:coverage": "jest --coverage", "check": "cspell lint --quiet src", "prepublishOnly": "pnpm run build"