diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-20 23:38:26 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-20 23:38:26 -0500 |
| commit | ce176fd3c4f42cf56d423d6a465d7e45e3fbc4a1 (patch) | |
| tree | ea4cb5fa6df6dd25af568a23a5509441ce8cfde7 /modules | |
| parent | f131fa4fb16949ba66d4153fde8b9c95fc407f84 (diff) | |
| download | dotemacs-ce176fd3c4f42cf56d423d6a465d7e45e3fbc4a1.tar.gz dotemacs-ce176fd3c4f42cf56d423d6a465d7e45e3fbc4a1.zip | |
fix(dev-fkeys): run javascript test files through the npx runner
The language detector classifies js/jsx and the test-file detector recognizes JS tests, but the dispatch had no javascript arm, so C-F6 on a JS test errored though the typescript npx path runs it fine. javascript now shares that arm.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/dev-fkeys.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/dev-fkeys.el b/modules/dev-fkeys.el index 0f120a8d..c760e392 100644 --- a/modules/dev-fkeys.el +++ b/modules/dev-fkeys.el @@ -364,9 +364,10 @@ TypeScript / JavaScript and unknown languages return nil." (if (string-empty-p rel-dir) "./" (format "./%s" rel-dir))))) - ('typescript + ((or 'typescript 'javascript) ;; Prefer vitest when present on PATH, fall back to jest otherwise. - ;; Both runners take a path argument and accept relative paths. + ;; Both runners take a path argument and accept relative paths, and + ;; both run JS test files the same way they run TS ones. (let ((runner (or (and (executable-find "vitest") "vitest") (and (executable-find "jest") "jest") "jest"))) ; reasonable default for stack traces |
