Files
OpenTerminal/.gitignore
T
Bill a0be827650 test(main): cover updater fallback, ipc sender guard, log sanitizer, sftp timeouts
- updater-fallback.mjs (82 assertions): GitHub probe fallback to Gitea,
  timeout budgets, in-flight check never stuck in 'checking'; updater.ts
  gains a setUpdateTimeouts test seam, electron-updater aliased to a stub
- ipc-guard.mjs (43): trusted-frame guard exercised through real
  registerIpc handlers with forged senderFrames; electron-stub now records
  registrations via globalThis so bundle and test share one instance
- log-sanitizer.mjs (71): CSI/OSC/charset state machine, alt-screen fold,
  byte-split fuzz equal to whole-chunk output; fixes a wrong comment
- sftp-timeout.mjs (39): per-op timeouts (metadata 30s, transfer chunk 60s,
  open 10s) evict half-dead channels with one retry, slow-but-progressing
  transfers untouched, late rejections never unhandled
- reservedAccelerators.ts: single pure isReservedAccelerator shared by the
  settings recorder and applyGlobalShortcut (the two tables had drifted —
  main now also refuses Ctrl+=/-/0/PgUp/PgDn legacy values); 56 assertions
- ssh-loopback.mjs loads the real ssh.ts via a bundle (50 assertions):
  TOFU pinning, fail-closed stores, auth gate, connect budget

Offline suite grows 13 -> 17. Renderer test framework evaluated: not
introducing vitest/jsdom; pure logic keeps being extracted and tested
through the existing bundle harness.
2026-10-07 22:57:16 +08:00

66 lines
1.1 KiB
Plaintext

# dependencies
node_modules/
# build output
out/
dist/
tests/.session-e2e.cjs
tests/.sftp-svc.*
tests/.hl-smoke.*
# research artifacts (XTerminal reverse-engineering notes, not part of the app)
research/
# logs / misc
*.log
.DS_Store
# credentials (do not commit)
.env
# .env.* too, but never the committed templates
.env.*
!.env.example
!.env.sample
!.env.template
# ts build info
*.tsbuildinfo
.sftp-test-*.bin
.sftp-dl-*
tests/.commands-store.cjs
tests/.connections-store.cjs
tests/.known-hosts.cjs
tests/.lock-store.cjs
tests/.lock-controller.cjs
tests/.lock-shortcuts.cjs
tests/.settings-store.cjs
tests/.local-path-grants.cjs
tests/.session-e2e.cjs
tests/.hl-split-smoke.cjs
tests/.hl-rules.cjs
tests/.zmodem-e2e.cjs
tests/.ssh.cjs
tests/.updater.cjs
tests/.ipc.cjs
tests/.ipc-channels.cjs
tests/.log-sanitizer.cjs
tests/.reserved-accelerators.cjs
release/
# stray local test artifacts
.min-test.bin
.min2-test.bin
.exact-test.bin
tests/.zm-src-*/
tests/.zm-out-*/
# release notes drafts (consumed by scripts/release.cjs + sync-changelog.cjs)
RELEASE_NOTES*.md
tmp-test/
tmp-test*
# agent session scratch (SDD plans/reports/smoke artifacts)
.superpowers/