bedrock-cli icon indicating copy to clipboard operation
bedrock-cli copied to clipboard

Running unit tests replaces existing $/.bedrock/config.yaml file

Open andrebriggs opened this issue 4 years ago • 0 comments

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.

andrebriggs avatar May 19 '20 18:05 andrebriggs