testing/cross_backend/build_test_backend_paths.ts

Per-backend filesystem layout under os.tmpdir() for cross-process tests.

Isolation matters because vitest projects can run in parallel — a shared root would mix daemon tokens across concurrently-running backends. Each backend gets its own subtree via the prefix arg (typically the BackendConfig.name).

Consumers compose: take the generic paths from build_test_backend_paths(name), add domain-specific dirs (e.g. zzz_dir, scoped_dir) under the returned root.

Declarations
#

2 declarations

view source

build_test_backend_paths
#

TestBackendPaths
#

testing/cross_backend/build_test_backend_paths.ts view source

TestBackendPaths

Generic per-backend paths every cross-process test binary needs. Consumers extend this with their own domain paths.

- root — the per-backend subtree under os.tmpdir(). Compose consumer-specific paths under here. - bootstrap_token_path — FUZ_BOOTSTRAP_TOKEN_PATH; harness writes the bootstrap token here before spawn. - daemon_token_path — where init_daemon_token (Rust) and the TS server's daemon-token writer land the token (under {root}/run/).

root

type string
readonly

bootstrap_token_path

type string
readonly

daemon_token_path

type string
readonly

Depends on
#

Imported by
#