-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jest test freeze, but works with vim-test #54
Comments
I'm going to need some more details unfortunately. Does this happen with any Jest test? I can see the program is outputting something, can you run |
Wow, I am kind of dumb. React script run using watch by default, so the process never stop. Using vim-test I can pass arguments when I run tests ( |
Ah good to hear it's a simple solution 😄 To pass arguments right now you can't supply them to the command. You can set a variable though that works with vim-test as well let test#javascript#jest#options = "--watchAll=false" I could add the ability to add arguments to commands but it will be a bit involved so won't be a quick change. |
Nice! For anybody else having the same problem, the runner is actually
No sure they are all required but 🤷♂️... The ability to add arguments to commands is honestly "candy/nice-to-have". |
@smichaud Thank you. I was having the same issue. This helped me solve it. |
Typescript, jest
Running a test freeze
Running it directly with vim-test works properly.
Log:
Log indicates running: ['node_modules/.bin/react-scripts', 'test', '-t', '^ should render form, header and submit button$', 'src/pipes/tests/PipeForm.test.tsx'], cwd = None, env = None
Running this command manually works properly:
node_modules/.bin/react-scripts test -t '^<PipeForm> should render form, header and submit button$' src/pipes/tests/PipeForm.test.tsx
The text was updated successfully, but these errors were encountered: