Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819#!/usr/bin/env bashset -euo pipefail
# Several daemon/browser integration tests exercise the default SHARD_HOME.# Isolate it so tests cannot read or modify a developer's real Shard state.test_home="$(mktemp -d "${TMPDIR:-/tmp}/shard-tests.XXXXXX")"trap 'rm -rf "$test_home"' EXIT
export SHARD_HOME="$test_home/.shard"export HOME="$test_home"export XDG_CONFIG_HOME="$test_home/.config"
# Tests must never spawn a real `vite build` via startDaemon's ensureWebBuild guard —# build/ may be absent (CI runs the test suite before `web:build`) and a build mid-test# would be slow and non-deterministic. The web build is exercised by `bun run web:build`.export SHARD_SKIP_WEB_BUILD="1"
bun test