Skip to content

Commit

Permalink
load @/config before any config class is instantiated
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Jan 9, 2025
1 parent 67039a7 commit 8df64fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/cli/test/setup-test-folder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ writeFileSync(
mode: 0o600,
},
);

// This is needed to ensure that `process.env` overrides in tests
// are set before any of the config classes are instantiated.
// TODO: delete this after we are done migrating everything to config classes
import '@/config';

0 comments on commit 8df64fa

Please sign in to comment.