binygal / jest-runner-flowtype

Jest runner for running flowtype tests using jest as a platform
26 stars 10 forks source link

Usage in multi-project runner broken #5

Closed sgwilym closed 6 years ago

sgwilym commented 6 years ago

I'm trying to use this runner as part of a multi-project runner in a monorepo with multiple workspaces, which runs against a few of the assumptions the implementation here makes:

I was able to fix this by switching out process.cwd() for this.globalConfig.rootDir.

Is this a viable approach (in which case I'll open a PR), or are there some drawbacks to this that I'm not seeing and we should find another way?

binygal commented 6 years ago

I think it's ok, just make sure it passes the tests. I didn't set CI/CD for this repo yet so you need to run them manually.

Also, your change is not fixing the first issue you mentioned, right? If not, please add this point to the README file in your PR.

sgwilym commented 6 years ago

This change would address the first issue too, as I'd expect the package that uses flow typechecking to have flow-bin as a dependency.

binygal commented 6 years ago

New version has been published in npm repository.