mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
Add tests for the security scanner's interactive TTY prompt that appears when warnings are found. Previously, TTY behavior was untested because we lacked a way to simulate a terminal environment. This adds: - security-scanner-pty.py: Python script to create PTY environment - bun-security-scanner-tty.test.ts: Tests for TTY and non-TTY behavior - Verifies prompt appears in TTY mode - Tests 'y'/'Y' continues installation - Tests 'n'/'N'/Enter/other cancels installation - Tests non-TTY mode fails immediately without prompting - Verifies packages are installed/not installed accordingly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>