.opencode/commands/find-test.md
Find the Bazel test target(s) for the file: $ARGUMENTS
Steps:
BUILD.bazel file in that directory (or the nearest parent with one).wd_test() or kj_test() rules that reference the file or related test files. For Rust files (.rs under src/rust/), search for wd_rust_crate() rules which auto-generate <name>_test targets, and check for companion C++ test files (e.g., ffi-test.c++) that test the FFI bridge. Also check for inline #[cfg(test)] modules within the .rs file itself.tests/ subdirectory that test this source.@ suffix required for running tests. For Rust test targets, the suffix is _test (e.g., //src/rust/jsg:jsg_test).Output format:
just test or bazel test command to run@, @all-compat-flags, @all-autogates)just new-test