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