UNPKG

trpc-shield

Version:

tRPC permissions as another layer of abstraction!

47 lines (46 loc) 977 B
import { defineConfig } from 'vitest/config' import { resolve } from 'path' export default defineConfig({ test: { globals: true, environment: 'node', include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], exclude: [ '**/node_modules/**', '**/dist/**', '**/example/**', '**/.{idea,git,cache,output,temp}/**' ], coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], exclude: [ 'node_modules/', 'dist/', 'example/', '**/*.d.ts', '**/*.config.{js,ts}', '**/coverage/**', '**/test/**', '**/__tests__/**' ], thresholds: { global: { branches: 80, functions: 80, lines: 80, statements: 80 } } }, typecheck: { enabled: true, tsconfig: './tsconfig.json' } }, resolve: { alias: { '@': resolve(__dirname, './src') } } })