Function: projectile-test-at-point-jest-command
projectile-test-at-point-jest-command is a byte-compiled function
defined in projectile.el.
Signature
(projectile-test-at-point-jest-command TEST-NAME FILE-NAME)
Documentation
Return a jest command running TEST-NAME in FILE-NAME.
TEST-NAME and FILE-NAME are shell-quoted: the test name is arbitrary source text (JS strings can contain any character), so an unquoted interpolation would let a hostile project inject shell code.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-test-at-point-jest-command (test-name file-name)
"Return a jest command running TEST-NAME in FILE-NAME.
TEST-NAME and FILE-NAME are shell-quoted: the test name is arbitrary
source text (JS strings can contain any character), so an unquoted
interpolation would let a hostile project inject shell code."
(format "npx jest %s -t %s"
(shell-quote-argument file-name)
(shell-quote-argument test-name)))