emacs-jest icon indicating copy to clipboard operation
emacs-jest copied to clipboard

Documentation of use

Open camachojua opened this issue 5 years ago • 1 comments

I've been trying to use your package without good results, for the installation I'm using use-package in this way:

;; Jest mode
(use-package jest
  :ensure t
  :config
  (setq jest-executable "npm run test --"))

(use-package add-node-modules-path
  :ensure t)

When I'm editing a test file and after executing M-x jest-popup t I get the following message in the minibuffer:

Wrong type argument: stringp, nil

My package.json looks like this:

"scripts": {
    "test": "jest"
  }

Could anyone provide me help on this configuration issue?

camachojua avatar Dec 11 '19 23:12 camachojua

@camachojua Sorry I hadn't gotten back to this! I've started using https://github.com/avajs/ava over jest, personally. I have some thoughts to generalize this to run with any test suite but it's pretty low on my todolist.

The first pass was rough and relys on jest being globally installed(From the issues I've read) I think a better general solution would be to use the npm testscripts and test: for partial runs.

edmundmiller avatar Jan 14 '20 01:01 edmundmiller