We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1a6d4 commit 0c24a86Copy full SHA for 0c24a86
packages/cubejs-testing/src/birdbox.ts
@@ -161,8 +161,13 @@ export async function startBirdBoxFromCli(options: StartCliWithEnvOptions): Prom
161
162
const testDir = path.join(process.cwd(), 'birdbox-test-project');
163
164
- if (fs.existsSync(path.join(testDir))) {
165
- fsExtra.removeSync(path.join(testDir));
+ // Do not remove whole dir as it contains node_modules
+ if (fs.existsSync(path.join(testDir, '.env'))) {
166
+ fs.unlinkSync(path.join(testDir, '.env'));
167
+ }
168
+
169
+ if (fs.existsSync(path.join(testDir, '.cubestore'))) {
170
+ fsExtra.removeSync(path.join(testDir, '.env'));
171
}
172
173
fsExtra.copySync(
0 commit comments