Open History to see the last commit
1import { defineConfig } from "vite-plus";
2import "vite-plus/test/config";
3
4const reactTests = [
5 "src/features/home/home-route-visibility.test.tsx",
6 "src/features/settings/SettingsServerControlsRouteScreen.test.tsx",
7 "src/features/settings/components/BranchNamingSettings.test.tsx",
8 "src/features/threads/use-visible-second-clock.test.tsx",
9 "src/features/threads/useThreadHeaderOptions.test.tsx",
10 "src/native/NativeHeaderToolbar.test.tsx",
11 "src/state/use-selected-thread-git-actions.test.tsx",
12];
13
14export default defineConfig({
15 test: {
16 hookTimeout: 60_000,
17 testTimeout: 60_000,
18 projects: [
19 {
20 extends: true,
21 test: {
22 name: "unit",
23 include: ["**/*.test.{ts,tsx,mjs}"],
24 exclude: ["**/node_modules/**", ...reactTests],
25 setupFiles: ["../../packages/shared/src/testing/longTempDir.ts"],
26 },
27 },
28 {
29 extends: true,
30 test: {
31 name: "react",
32 include: reactTests,
33 // Native components mock React Native and render through react-dom in these tests.
34 environment: "jsdom",
35 },
36 },
37 ],
38 },
39});