chore: cleanup and apply requested changes

This commit is contained in:
Ralph Khreish
2025-08-27 23:32:35 +02:00
parent 86d9c4b194
commit 5ed3f2f16b
18 changed files with 165 additions and 231 deletions

View File

@@ -1,6 +1,11 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vitest/config';
// __dirname in ESM
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default defineConfig({
test: {
globals: true,
@@ -8,6 +13,7 @@ export default defineConfig({
include: [
'tests/**/*.test.ts',
'tests/**/*.spec.ts',
'tests/{unit,integration,e2e}/**/*.{test,spec}.ts',
'src/**/*.test.ts',
'src/**/*.spec.ts'
],
@@ -22,7 +28,7 @@ export default defineConfig({
'**/*.test.ts',
'**/*.spec.ts',
'**/*.d.ts',
'**/index.ts'
'src/index.ts'
],
thresholds: {
branches: 80,