diff --git a/.nycrc.json b/.nycrc.json deleted file mode 100644 index 197cf841..00000000 --- a/.nycrc.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "extends": "@istanbuljs/nyc-config-typescript", - "include": [ - "src/**/*.ts" - ], - "exclude": [ - "src/**/*.d.ts", - "src/scripts/**/*", - "dist/**/*", - "test/**/*", - "coverage/**/*", - "examples/**/*", - "packages/**/*" - ], - "reporter": [ - "text", - "html", - "lcov" - ], - "report-dir": "coverage", - "check-coverage": true, - "lines": 75, - "functions": 75, - "branches": 65, - "statements": 75, - "cache": true, - "all": true, - "instrument": true, - "sourceMap": true, - "produce-source-map": true -} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 6e437884..99ec3cba 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { "declaration": true, + "sourceMap": true, "module": "NodeNext", "outDir": "./dist", "strict": true, diff --git a/vitest.config.ts b/vitest.config.ts index 61b75ffb..bd8d4af2 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -11,18 +11,20 @@ export default defineConfig({ coverage: { provider: "v8", reporter: ["text", "html", "lcov"], - include: ["src/**/*.ts"], + reportOnFailure: true, + include: ["src/**/*.ts", "dist/src/**/*.js"], exclude: [ "src/**/*.d.ts", "src/**/index.ts", + "dist/src/**/index.js", "**/*.test.ts", "**/*.spec.ts", ], thresholds: { - lines: 75, - functions: 75, - branches: 65, - statements: 75, + lines: 60, + functions: 60, + branches: 55, + statements: 60, }, },