From eca807a2b3ca016ce959bd5016955508cf8ad75d Mon Sep 17 00:00:00 2001 From: Vida Xie Date: Tue, 8 Jul 2025 15:48:36 +0800 Subject: [PATCH] test: align with `nyc` coverage configuration --- .nycrc | 19 ------------------- vitest.config.ts | 4 +++- 2 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 .nycrc diff --git a/.nycrc b/.nycrc deleted file mode 100644 index a31275f2..00000000 --- a/.nycrc +++ /dev/null @@ -1,19 +0,0 @@ -{ - "include": [ - "src/**/*.ts" - ], - "exclude": [ - "src/external/**/*.ts" - ], - "extension": [ - ".ts" - ], - "require": [ - "ts-node/register" - ], - "reporter": [ - "lcov", - "text-summary" - ], - "sourceMap": true -} diff --git a/vitest.config.ts b/vitest.config.ts index f0cdca4d..9df42d5d 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -6,7 +6,9 @@ export default defineConfig({ include: ["test/**/*.test.ts"], testTimeout: 60000, coverage: { - include: ["src"], + include: ["src/**/*.ts"], + exclude: ["src/external/**/*.ts"], + reporter: ["html", "lcov", "text-summary"], }, }, })