bedrock-cli
bedrock-cli copied to clipboard
Running unit tests replaces existing $/.bedrock/config.yaml file
As a Bedrock developer I am using and developing bedrock
. After running yarn test
on source code I find that my $/.bedrock/config.yaml
file is replaced with this mock file
The offending test appears to config.test.ts
which calls saveConfiguration
to the default location ($/.bedrock/config.yaml
) not a temp directory. See here
The expectations that "production" configuration doesn't get overwritten by tests. We should write to a temp directory.