an app to share curated trails sidetrail.app
atproto nextjs react rsc
50
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 48 lines 1.1 kB view raw
1import { defineConfig } from "vitest/config"; 2import path from "path"; 3 4const sharedConfig = { 5 globals: true, 6 environment: "node" as const, 7 clearMocks: true, 8 restoreMocks: true, 9 pool: "forks" as const, 10 fileParallelism: false, 11 testTimeout: 30000, 12 hookTimeout: 30000, 13}; 14 15const sharedResolve = { 16 alias: { 17 "@": path.resolve(__dirname), 18 "@sidetrail/db": path.resolve(__dirname, "db/src"), 19 }, 20}; 21 22export default defineConfig({ 23 test: { 24 ...sharedConfig, 25 projects: [ 26 { 27 test: { 28 ...sharedConfig, 29 name: "queries", 30 include: ["data/__tests__/*.test.ts"], 31 exclude: ["data/__tests__/*.actions.test.ts"], 32 setupFiles: ["./data/__tests__/setup.ts"], 33 }, 34 resolve: sharedResolve, 35 }, 36 { 37 test: { 38 ...sharedConfig, 39 name: "actions", 40 include: ["data/__tests__/*.actions.test.ts"], 41 setupFiles: ["./data/__tests__/setup.actions.ts"], 42 }, 43 resolve: sharedResolve, 44 }, 45 ], 46 }, 47 resolve: sharedResolve, 48});