You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We are configuring reassure in a monorepo containing many packages. We configured it in multiple packages. Each package has its own particularities and jest configuration, meaning they each have their respective reassure command.
We run these commands from the root of our monorepo. The problem is that since there's no way to configure an output folder, each package competes with the same .reassure/ folder at the root, making it difficult to run reassure across packages.
Let's say we change a shared util and want to measure its impact across the monorepo. We can't run the baseline, make the change, and then compare because the files in the .reassure/ folder get overridden after each reassure run in the different packages.
Describe the solution you'd like
Adding an environment variable called REASSURE_OUTPUT_FOLDER that works on the cli command and the measure packages.
The cli change might be as simple as changing a few lines here:
We could also double down on the REASSURE_OUTPUT_FILE environment variable and make it work with the cli package.
Additional context
Such a configuration would allow us to set up a different output folder per package in our monorepo.
There might already be a way of doing this, but I couldn't find it. Let me know what you think and how I can help. I can even make a pull request if needed.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
We are configuring
reassure
in a monorepo containing many packages. We configured it in multiple packages. Each package has its own particularities andjest
configuration, meaning they each have their respectivereassure
command.We run these commands from the root of our monorepo. The problem is that since there's no way to configure an output folder, each package competes with the same
.reassure/
folder at the root, making it difficult to runreassure
across packages.Let's say we change a shared util and want to measure its impact across the monorepo. We can't run the baseline, make the change, and then compare because the files in the
.reassure/
folder get overridden after eachreassure
run in the different packages.Describe the solution you'd like
Adding an environment variable called
REASSURE_OUTPUT_FOLDER
that works on thecli
command and themeasure
packages.The
cli
change might be as simple as changing a few lines here:reassure/packages/cli/src/constants.ts
Lines 1 to 3 in 672af33
to something like
For the
measure
package, it might conflict with theREASSURE_OUTPUT_FILE
environment variable, requiring more refactoring.reassure/packages/measure/src/config.ts
Line 18 in 672af33
Describe alternatives you've considered
We could also double down on the
REASSURE_OUTPUT_FILE
environment variable and make it work with thecli
package.Additional context
Such a configuration would allow us to set up a different output folder per package in our monorepo.
There might already be a way of doing this, but I couldn't find it. Let me know what you think and how I can help. I can even make a pull request if needed.
The text was updated successfully, but these errors were encountered: