File size: 721 Bytes
2fcae3f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { fileURLToPath } from "url"

import { defineConfig } from "vitest/config"

export default defineConfig({
  resolve: {
    alias: {
      "@": fileURLToPath(new URL(".", import.meta.url)),
      "server-only": fileURLToPath(new URL("./tests/server-only-stub.ts", import.meta.url)),
    },
  },
  test: {
    // upstream-drift.test.ts walks the full live HF cache (~16s) and is opt-in
    // via `pnpm test:drift`. The drift script sets RUN_DRIFT=1; the test file
    // self-skips otherwise. We DON'T exclude the path here because vitest's
    // exclude wins over an explicit path arg, which would silently make
    // `pnpm test:drift` find zero tests.
    exclude: ["**/node_modules/**", "**/dist/**"],
  },
})