Add unit and integration test scripts to package.json files across multiple packages

This commit is contained in:
dal 2025-07-14 09:11:20 -06:00
parent 2fbe815c27
commit 2be9784516
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
12 changed files with 21 additions and 2 deletions

View File

@ -14,6 +14,8 @@
"lint": "biome check",
"start": "bun dist/index.js",
"test": "vitest run",
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
"test:integration": "vitest run --include '**/*.int.test.ts' --include '**/*.integration.test.ts'",
"test:coverage": "vitest --coverage",
"test:watch": "vitest --watch",
"typecheck": "tsc --noEmit"

View File

@ -12,7 +12,7 @@
"test": "vitest run",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
"test:integration": "vitest run tests/integration",
"test:integration": "vitest run --include '**/*.int.test.ts' --include '**/*.integration.test.ts'",
"test:integration:watch": "vitest watch tests/integration",
"test:unit": "vitest run tests/unit",
"typecheck": "tsc --noEmit"

View File

@ -20,6 +20,8 @@
"dev": "tsc --watch",
"lint": "biome check",
"test": "vitest run",
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
"test:integration": "vitest run --include '**/*.int.test.ts' --include '**/*.integration.test.ts'",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
"typecheck": "tsc --noEmit"

View File

@ -21,6 +21,8 @@
"dev:mastra": "mastra dev --dir src",
"lint": "biome check",
"test": "vitest run",
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
"test:integration": "vitest run --include '**/*.int.test.ts' --include '**/*.integration.test.ts'",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
"eval:metrics": "npx braintrust eval evals/agents/analyst-agent/metrics",

View File

@ -21,7 +21,7 @@
"lint:fix": "biome check --write",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:integration": "vitest run tests/integration/",
"test:integration": "vitest run --include '**/*.int.test.ts' --include '**/*.integration.test.ts'",
"test:introspection": "vitest run tests/integration/data-source-introspection.test.ts",
"test:unit": "vitest run tests/unit/",
"test:watch": "vitest",

View File

@ -40,6 +40,8 @@
"lint": "biome check",
"stop": "pnpm run db:stop",
"test": "vitest run",
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
"test:integration": "vitest run --include '**/*.int.test.ts' --include '**/*.integration.test.ts'",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
"typecheck": "tsc --noEmit"

View File

@ -15,6 +15,8 @@
"build": "tsc",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
"test:integration": "vitest run --include '**/*.int.test.ts' --include '**/*.integration.test.ts'",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
"lint": "biome check",

View File

@ -11,6 +11,8 @@
"lint": "biome check",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
"test:integration": "vitest run --include '**/*.int.test.ts' --include '**/*.integration.test.ts'",
"test:watch": "vitest"
},
"exports": {

View File

@ -21,6 +21,7 @@
"dev": "tsc --watch",
"lint": "biome check",
"test": "vitest run",
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
"test:integration": "vitest run src/**/*.int.test.ts"

View File

@ -25,6 +25,8 @@
"build:commonjs:watch": "npm run build:commonjs && tsc --module commonjs --moduleResolution node --watch",
"lint": "biome check",
"test": "vitest run",
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
"test:integration": "vitest run --include '**/*.int.test.ts' --include '**/*.integration.test.ts'",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest watch",
"typecheck": "tsc --noEmit"

View File

@ -19,6 +19,8 @@
"typecheck": "tsc --noEmit",
"lint": "biome check",
"test": "vitest run",
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
"test:integration": "vitest run --include '**/*.int.test.ts' --include '**/*.integration.test.ts'",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage"
},

View File

@ -8,6 +8,8 @@
"build": "tsc --build",
"lint": "biome check",
"test": "vitest run",
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
"test:integration": "vitest run --include '**/*.int.test.ts' --include '**/*.integration.test.ts'",
"test:coverage": "vitest --coverage",
"test:ui": "vitest --ui",
"test:watch": "vitest",