From 0714b39419d0b292cda4991924b6402e647dc03b Mon Sep 17 00:00:00 2001 From: v1rtl Date: Thu, 17 Oct 2024 23:49:56 +0300 Subject: [PATCH] feat: proper coverage --- .gitignore | 2 +- biome.json | 8 +------- package.json | 3 ++- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 5a19e8a..60f3b7a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ node_modules dist -coverage \ No newline at end of file +coverage* \ No newline at end of file diff --git a/biome.json b/biome.json index 3fd7ec8..fe58f28 100644 --- a/biome.json +++ b/biome.json @@ -1,13 +1,7 @@ { "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", "files": { - "ignore": [ - "node_modules", - "test-results", - "playwright-report", - "package.json", - "dist" - ] + "ignore": ["node_modules", "package.json", "dist", "coverage"] }, "organizeImports": { "enabled": true diff --git a/package.json b/package.json index 4c85b20..9397ed6 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ "build": "tsc -p tsconfig.build.json", "prepare": "husky", "test": "tsx --test tests/index.test.ts", - "test:coverage": "c8 pnpm test" + "test:coverage": "c8 --include=src pnpm test", + "test:report": "c8 report --reporter=text-lcov > coverage.lcov" }, "devDependencies": { "@biomejs/biome": "^1.9.4",