Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"lint": "eslint . --max-warnings 0 --quiet",
"test": "vitest",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"email": "email dev --dir emails --port 3333"
},
"dependencies": {
Expand Down
8 changes: 7 additions & 1 deletion apps/web/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ export default defineConfig({
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
include: ["lib/**/*.ts", "actions/**/*.ts", "hooks/**/*.ts"],
include: [
"lib/**/*.ts",
"lib/**/*.tsx",
"actions/**/*.ts",
"hooks/**/*.ts",
"hooks/**/*.tsx",
],
exclude: [
"**/*.d.ts",
"**/types/**",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"test": "turbo run test --filter=@simplifying/web",
"test:all": "turbo run test",
"test:run": "turbo run test:run",
"test:coverage": "pnpm --filter @simplifying/web test:coverage",
"test:coverage": "turbo run test:coverage",
"test:coverage:web": "pnpm --filter @simplifying/web test:coverage",
"test:watch": "pnpm --filter @simplifying/web test:watch"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"lint": "biome check .",
"test": "vitest run",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest"
},
"dependencies": {
Expand All @@ -27,6 +28,7 @@
"@simplifying/tsconfig": "workspace:*",
"@types/node": "^24",
"typescript": "5.5.3",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16"
}
}
2 changes: 2 additions & 0 deletions packages/api-client/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { sharedCoverageConfig } from "@simplifying/tsconfig/vitest.shared";
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
environment: "node",
include: ["src/**/*.test.ts"],
exclude: ["node_modules", "dist"],
...sharedCoverageConfig,
},
});
2 changes: 2 additions & 0 deletions packages/api-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"lint": "biome check .",
"test": "vitest run --passWithNoTests",
"test:run": "vitest run --passWithNoTests",
"test:coverage": "vitest run --coverage --passWithNoTests",
"test:watch": "vitest"
},
"dependencies": {
Expand All @@ -32,6 +33,7 @@
"@simplifying/tsconfig": "workspace:*",
"next": "15.5.9",
"typescript": "5.5.3",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16",
"zod": "^4.1.12"
}
Expand Down
2 changes: 2 additions & 0 deletions packages/api-server/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { sharedCoverageConfig } from "@simplifying/tsconfig/vitest.shared";
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
environment: "node",
include: ["src/**/*.test.ts"],
exclude: ["node_modules", "dist"],
...sharedCoverageConfig,
},
});
4 changes: 3 additions & 1 deletion packages/calendar-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"type-check": "tsc -p tsconfig.json --noEmit",
"lint": "biome check .",
"test": "vitest run",
"test:run": "vitest run"
"test:run": "vitest run",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@microsoft/microsoft-graph-client": "3.0.7",
Expand All @@ -40,6 +41,7 @@
"@simplifying/tsconfig": "workspace:*",
"@types/node": "^24",
"typescript": "5.5.3",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16",
"vitest-mock-extended": "^3.1.0"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/calendar-sync/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { sharedCoverageConfig } from "@simplifying/tsconfig/vitest.shared";
import { defineConfig } from "vitest/config";
import { fileURLToPath } from "node:url";

Expand All @@ -7,10 +8,10 @@ export default defineConfig({
include: ["src/**/*.test.ts"],
exclude: ["node_modules", "dist"],
alias: {
// Stub server-only for test environment
"server-only": fileURLToPath(
new URL("./tests/mocks/server-only.ts", import.meta.url),
),
},
...sharedCoverageConfig,
},
});
2 changes: 2 additions & 0 deletions packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"lint": "biome check .",
"test": "vitest run",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest"
},
"peerDependencies": {
Expand All @@ -40,6 +41,7 @@
"@sentry/nextjs": "^10.26.0",
"@simplifying/tsconfig": "workspace:*",
"typescript": "5.5.3",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16"
}
}
2 changes: 2 additions & 0 deletions packages/errors/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { sharedCoverageConfig } from "@simplifying/tsconfig/vitest.shared";
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
environment: "node",
include: ["src/**/*.test.ts"],
exclude: ["node_modules", "dist"],
...sharedCoverageConfig,
},
});
4 changes: 3 additions & 1 deletion packages/event/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"type-check": "tsc -p tsconfig.json --noEmit",
"lint": "biome check .",
"test": "vitest run",
"test:run": "vitest run"
"test:run": "vitest run",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@simplifying/prisma": "workspace:*",
Expand All @@ -28,6 +29,7 @@
"@prisma/client": "^5.17.0",
"@types/node": "^24",
"typescript": "5.5.3",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16"
},
"peerDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/event/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { sharedCoverageConfig } from "@simplifying/tsconfig/vitest.shared";
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
environment: "node",
include: ["src/**/*.test.ts"],
exclude: ["node_modules", "dist"],
...sharedCoverageConfig,
},
});
4 changes: 3 additions & 1 deletion packages/inbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"type-check": "tsc -p tsconfig.json --noEmit",
"lint": "biome check .",
"test": "vitest run --passWithNoTests",
"test:run": "vitest run --passWithNoTests"
"test:run": "vitest run --passWithNoTests",
"test:coverage": "vitest run --coverage --passWithNoTests"
},
"dependencies": {
"@simplifying/api-client": "workspace:*",
Expand All @@ -33,6 +34,7 @@
"@types/node": "^24",
"react": "18.3.1",
"typescript": "5.5.3",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16",
"vitest-mock-extended": "^3.1.0"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/inbox/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { sharedCoverageConfig } from "@simplifying/tsconfig/vitest.shared";
import { defineConfig } from "vitest/config";
import { fileURLToPath } from "node:url";

Expand All @@ -11,5 +12,6 @@ export default defineConfig({
new URL("./tests/mocks/server-only.ts", import.meta.url),
),
},
...sharedCoverageConfig,
},
});
4 changes: 3 additions & 1 deletion packages/job-queue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"lint": "biome check .",
"lint:fix": "biome check --write .",
"test": "vitest run",
"test:run": "vitest run"
"test:run": "vitest run",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@simplifying/errors": "workspace:*",
Expand All @@ -30,6 +31,7 @@
"@simplifying/tsconfig": "workspace:*",
"@types/node": "^24",
"typescript": "5.5.3",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16"
},
"peerDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/job-queue/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { sharedCoverageConfig } from "@simplifying/tsconfig/vitest.shared";
import { defineConfig } from "vitest/config";
import { fileURLToPath } from "node:url";

Expand All @@ -7,10 +8,10 @@ export default defineConfig({
include: ["src/**/*.test.ts"],
exclude: ["node_modules", "dist"],
alias: {
// Stub server-only for test environment
"server-only": fileURLToPath(
new URL("./tests/mocks/server-only.ts", import.meta.url),
),
},
...sharedCoverageConfig,
},
});
4 changes: 3 additions & 1 deletion packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
"type-check": "tsc -p tsconfig.json --noEmit",
"lint": "biome check .",
"test": "vitest run",
"test:run": "vitest run"
"test:run": "vitest run",
"test:coverage": "vitest run --coverage"
},
"devDependencies": {
"@simplifying/tsconfig": "workspace:*",
"@prisma/client": "^5.17.0",
"@types/node": "^24",
"typescript": "5.5.3",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16"
},
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/prisma/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { sharedCoverageConfig } from "@simplifying/tsconfig/vitest.shared";
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
environment: "node",
include: ["src/**/*.test.ts"],
exclude: ["node_modules", "dist"],
...sharedCoverageConfig,
},
});
4 changes: 3 additions & 1 deletion packages/task-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"type-check": "tsc -p tsconfig.json --noEmit",
"lint": "biome check .",
"test": "vitest run",
"test:run": "vitest run"
"test:run": "vitest run",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@simplifying/api-client": "workspace:*",
Expand All @@ -42,6 +43,7 @@
"react": "18.3.1",
"sonner": "^1.5.0",
"typescript": "5.5.3",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16",
"vitest-mock-extended": "^3.1.0"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/task-group/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { sharedCoverageConfig } from "@simplifying/tsconfig/vitest.shared";
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
environment: "node",
include: ["src/**/*.test.ts"],
exclude: ["node_modules", "dist"],
...sharedCoverageConfig,
},
});
4 changes: 3 additions & 1 deletion packages/task-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"type-check": "tsc -p tsconfig.json --noEmit",
"lint": "biome check .",
"test": "vitest run --passWithNoTests",
"test:run": "vitest run --passWithNoTests"
"test:run": "vitest run --passWithNoTests",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@microsoft/microsoft-graph-client": "3.0.7",
Expand All @@ -39,6 +40,7 @@
"@simplifying/tsconfig": "workspace:*",
"@types/node": "^24",
"typescript": "5.5.3",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16",
"vitest-mock-extended": "^3.1.0"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/task-sync/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { sharedCoverageConfig } from "@simplifying/tsconfig/vitest.shared";
import { defineConfig } from "vitest/config";
import { fileURLToPath } from "node:url";

Expand All @@ -7,10 +8,10 @@ export default defineConfig({
include: ["src/**/*.test.ts"],
exclude: ["node_modules", "dist"],
alias: {
// Stub server-only for test environment
"server-only": fileURLToPath(
new URL("./tests/mocks/server-only.ts", import.meta.url),
),
},
...sharedCoverageConfig,
},
});
4 changes: 3 additions & 1 deletion packages/task/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"type-check": "tsc -p tsconfig.json --noEmit",
"lint": "biome check .",
"test": "vitest run --passWithNoTests",
"test:run": "vitest run --passWithNoTests"
"test:run": "vitest run --passWithNoTests",
"test:coverage": "vitest run --coverage --passWithNoTests"
},
"dependencies": {
"@simplifying/api-client": "workspace:*",
Expand All @@ -35,6 +36,7 @@
"@types/node": "^24",
"react": "18.3.1",
"typescript": "5.5.3",
"@vitest/coverage-v8": "^4.0.16",
"vitest": "^4.0.16",
"vitest-mock-extended": "^3.1.0"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/task/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { sharedCoverageConfig } from "@simplifying/tsconfig/vitest.shared";
import { defineConfig } from "vitest/config";
import { fileURLToPath } from "node:url";

Expand All @@ -11,5 +12,6 @@ export default defineConfig({
new URL("./tests/mocks/server-only.ts", import.meta.url),
),
},
...sharedCoverageConfig,
},
});
7 changes: 5 additions & 2 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "@simplifying/tsconfig",
"version": "0.0.1",
"type": "module",
"private": true,
"license": "UNLICENSED",
"files": [
"*.json"
"*.json",
"vitest.shared.ts"
],
"scripts": {
"build": "echo 'Config-only package, no build needed'",
Expand All @@ -19,7 +21,8 @@
"./react-library": "./react-library.json",
"./react-library.json": "./react-library.json",
"./node-library": "./node-library.json",
"./node-library.json": "./node-library.json"
"./node-library.json": "./node-library.json",
"./vitest.shared": "./vitest.shared.ts"
},
"devDependencies": {
"vitest": "^4.0.16"
Expand Down
Loading