docs(configuration): improve clarity and formatting in configuration documentation

This commit is contained in:
elipeter 2026-05-22 09:42:18 -05:00
parent 9062cd652a
commit 32211079a0
32 changed files with 717 additions and 380 deletions

View file

@ -137,10 +137,7 @@ fn is_runtime_import_error(outcome: &sandbox::SandboxOutcome) -> bool {
return false;
}
let needle = b"NYX_IMPORT_ERROR:";
outcome
.stderr
.windows(needle.len())
.any(|w| w == needle)
outcome.stderr.windows(needle.len()).any(|w| w == needle)
}
/// Build harness (with retry), run every payload, stop at first confirmed trigger.
@ -711,7 +708,10 @@ mod tests {
#[test]
fn import_error_detects_exit_77_with_marker() {
let outcome = outcome_with(Some(77), b"NYX_IMPORT_ERROR: Cannot find module 'express'\n");
let outcome = outcome_with(
Some(77),
b"NYX_IMPORT_ERROR: Cannot find module 'express'\n",
);
assert!(is_runtime_import_error(&outcome));
}