intuit / proof

A tapable integration testing library for your Storybook stories
https://intuit.github.io/proof/
MIT License
86 stars 30 forks source link

CLI not respecting config arg #70

Closed hainessss closed 3 years ago

hainessss commented 3 years ago

Hello team.

I am running proof as such: yarn proof --url https://url.com/ --remote --config ./.ci/proof-chrome.config.js. But, proof ignores proof-chrome.config.js and instead uses proof.config.js which resides in the root of the project.

expectation: proof uses the passed config.

Thanks,

adierkens commented 3 years ago

Thanks for the issue, I’ll take a look

hainessss commented 3 years ago

Were you able to reproduce this? @adierkens

adierkens commented 3 years ago

:rocket: Issue was released in v0.1.6 :rocket:

hainessss commented 3 years ago

I think this issue still exists. I see the custom path being passed to cosmicConfig but the result ends up being the one in the root. maybe the later array elements in searchPlaces wins out? @adierkens