Test
Targets
rulesTest()
rulesTest({ root, tools = [] })
Declare a JS rule-test label for one workspace directory. Only _test.js files directly in root are owned; nested directories declare their own rules-test label. suite genuinely resolves via PATH (not stubbed with withFakeToolchainHost) — e.g. odin's tests call real nativeToolSpec(nativeTool("mkdir")). The sandboxed test subprocess otherwise has no PATH at all, so any undeclared real lookup fails.
| Parameter | Type | Description |
|---|---|---|
| opts | object | |
| opts.root | string | Workspace-rooted directory, e.g. "//rules/odin". |
| [opts.tools] | object[] | nativeTool(...) specifications this root's test |
Returns: object Label handle.