Files
oh-my-pi/packages/coding-agent/test/utils
oldschoola 11b4edf45d test(utils): add contract tests for lang-from-path detection
24 tests covering getLanguageFromPath and detectLanguageId:
- Extension detection for common languages (TS, JS, Rust, Go, Python, etc.)
- TypeScript variants (.cts, .mts, .tsx)
- Case-insensitivity
- Unknown extensions return undefined/plaintext
- Special filenames: Dockerfile, Containerfile, .emacs, justfile
- .env prefix detection
- CMakeLists.txt: documents that .txt extension wins over basename
  in getLanguageFromPath (detectLanguageId handles it correctly)
- Full paths with directories
- Multi-dot filenames (config.test.ts)
2026-06-23 10:12:22 -07:00
..
2026-06-23 08:18:29 +02:00