bunfig.toml
⎇
Raw
1[test]
2# src/db/index.ts opens and migrates the database in its module body, before
3# any test file can override DATA_DIR. The preload repoints DATA_DIR at a
4# per-worker directory first. It lives here rather than only in the
5# package.json "test" script so that a bare `bun test` — what an IDE runs, and
6# what you type for a single file — cannot run against the real ./data.
7preload = ["./tests/preload.ts"]
8
9# Note: `parallel` and `isolate` are CLI-only, so a bare `bun test` runs the
10# whole suite in one process where the e2e files share a data directory and
11# stomp each other. Use `bun run test`. Single files work either way.
12