invertase/spec

Testing all packages in a melos project

Closed this issue · 3 comments

Hi,

I have a melos project with a number of packages, and I like to watch all of them at once.

What's the best way to go about this? I currently have a melos script execute spec --watch in each package, and this works pretty well, with the limitation that I'm not able to interact with any of the watchers.

Is there a way I can watch all the packages in a melos project while retaining the interactive functionality offered by spec?

Thanks

You shouldn't need to do anything. Spec already integrates with melos

No need to run "spec --watch" on each packages. Simply run it once above all packages

Thanks, I had ran into a bit of an edge case.

My melos.yaml config had config data for a new melos feature (ide/intellij/moduleNamePrefix), and the melos instance within the spec cli was choking on this yaml.

spec swallowed this errors, so it was difficult to know that there was a problem at all.

Thanks @rrousselGit

Actually, I'm don't think that was the issue, I'm failing to reproduce that in isolation.