David-Kunz / jester

A Neovim plugin to easily run and debug Jest tests
The Unlicense
202 stars 12 forks source link

Example Typescript Conifg #21

Closed phortonssf closed 1 year ago

phortonssf commented 1 year ago

Trying to get this to work with typescript. Is it asking too much to post a sample typescript config? Thank you.

vuki656 commented 1 year ago

What problems did you encounter? I use it with TS.

David-Kunz commented 1 year ago

Hi @phortonssf ,

What's the difference in combination with TypeScript? Any special handling needed?

nabn commented 1 year ago

I think the problem is monorepos. My jest config lives in /ui, but this plugin seems to want to run jest from the .

Would be cool if there was a way to pass the path to jest config file.

David-Kunz commented 1 year ago

Hi @nabn,

I think you can do that already today by adjusting the jest path (and include the config via -c <config>), would that work?

nabn commented 1 year ago

@David-Kunz thanks for the tip. I was able to make it work by setting path_to_jest_run to yarn workspace ui jest and that correctly picked up the config.

Bit odd that it's a command rather than a path, but I'm glad it works 🎉