- Add new `fn desktop` CLI command with argument handling and comprehensive command/bin tests - Implement desktop build and hot-reload dev scripts and wire package scripts/dependencies for Electron workflows - Add electron-builder configuration and desktop main-process/integration test coverage to stabilize packaging behavior - Document desktop development and usage in README files and include a changeset for the published CLI package
17 lines
433 B
TypeScript
17 lines
433 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
const maxWorkers = Number.parseInt(process.env.VITEST_MAX_WORKERS ?? "16", 10);
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ["src/**/*.test.ts", "src/**/*.test.tsx"],
|
|
environmentMatchGlobs: [["src/renderer/**", "jsdom"]],
|
|
pool: "threads",
|
|
testTimeout: 30_000,
|
|
hookTimeout: 30_000,
|
|
maxWorkers,
|
|
fileParallelism: true,
|
|
passWithNoTests: true,
|
|
},
|
|
});
|