mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 08:53:36 +00:00
Merge main into massive-terminal-upgrade
Resolves merge conflicts: - apps/server/src/routes/terminal/common.ts: Keep randomBytes import, use @automaker/utils for createLogger - apps/ui/eslint.config.mjs: Use main's explicit globals list with XMLHttpRequest and MediaQueryListEvent additions - apps/ui/src/components/views/terminal-view.tsx: Keep our terminal improvements (killAllSessions, beforeunload, better error handling) - apps/ui/src/config/terminal-themes.ts: Keep our search highlight colors for all themes - apps/ui/src/store/app-store.ts: Keep our terminal settings persistence improvements (merge function) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,37 +1,52 @@
|
||||
import { defineConfig } from "vitest/config";
|
||||
import path from "path";
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
reporters: ['verbose'],
|
||||
globals: true,
|
||||
environment: "node",
|
||||
setupFiles: ["./tests/setup.ts"],
|
||||
environment: 'node',
|
||||
setupFiles: ['./tests/setup.ts'],
|
||||
coverage: {
|
||||
provider: "v8",
|
||||
reporter: ["text", "json", "html", "lcov"],
|
||||
include: ["src/**/*.ts"],
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'json', 'html', 'lcov'],
|
||||
include: ['src/**/*.ts'],
|
||||
exclude: [
|
||||
"src/**/*.d.ts",
|
||||
"src/index.ts",
|
||||
"src/routes/**", // Routes are better tested with integration tests
|
||||
'src/**/*.d.ts',
|
||||
'src/index.ts',
|
||||
'src/routes/**', // Routes are better tested with integration tests
|
||||
],
|
||||
thresholds: {
|
||||
lines: 65,
|
||||
// Increased thresholds to ensure better code quality
|
||||
// Current coverage: 64% stmts, 56% branches, 78% funcs, 64% lines
|
||||
lines: 60,
|
||||
functions: 75,
|
||||
branches: 58,
|
||||
statements: 65,
|
||||
branches: 55,
|
||||
statements: 60,
|
||||
},
|
||||
},
|
||||
include: ["tests/**/*.test.ts", "tests/**/*.spec.ts"],
|
||||
exclude: ["**/node_modules/**", "**/dist/**"],
|
||||
include: ['tests/**/*.test.ts', 'tests/**/*.spec.ts'],
|
||||
exclude: ['**/node_modules/**', '**/dist/**'],
|
||||
mockReset: true,
|
||||
restoreMocks: true,
|
||||
clearMocks: true,
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
// Resolve shared packages to source files for proper mocking in tests
|
||||
'@automaker/utils': path.resolve(__dirname, '../../libs/utils/src/index.ts'),
|
||||
'@automaker/platform': path.resolve(__dirname, '../../libs/platform/src/index.ts'),
|
||||
'@automaker/types': path.resolve(__dirname, '../../libs/types/src/index.ts'),
|
||||
'@automaker/model-resolver': path.resolve(
|
||||
__dirname,
|
||||
'../../libs/model-resolver/src/index.ts'
|
||||
),
|
||||
'@automaker/dependency-resolver': path.resolve(
|
||||
__dirname,
|
||||
'../../libs/dependency-resolver/src/index.ts'
|
||||
),
|
||||
'@automaker/git-utils': path.resolve(__dirname, '../../libs/git-utils/src/index.ts'),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user