Skip to content

Commit

Permalink
test: Get rid of a warning log in tests
Browse files Browse the repository at this point in the history
Removes the

```
  console.warn
    Could not ensure settings file permissions: Cannot read properties of undefined (reading 'mode'). To skip this check, set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false.
```
  • Loading branch information
tomi committed Dec 18, 2024
1 parent 7ce4e8d commit 6c88aa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/test/setup-test-folder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ mkdirSync(baseDir, { recursive: true });
const testDir = mkdtempSync(baseDir);
mkdirSync(join(testDir, '.n8n'));
process.env.N8N_USER_FOLDER = testDir;
process.env.N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS = 'false';

writeFileSync(
join(testDir, '.n8n/config'),
Expand Down

0 comments on commit 6c88aa2

Please sign in to comment.