Skip to content

Commit

Permalink
feat: disable verbosity from db-migrate (#3301)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Mar 13, 2023
1 parent ca02ca7 commit 8fdb263
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/migrator.ts
Expand Up @@ -11,6 +11,8 @@ export async function migrateDb({ db }: IUnleashConfig): Promise<void> {
connectionTimeoutMillis: secondsToMilliseconds(10),
};

// disable Intellij/WebStorm from setting verbose CLI argument to db-migrator
process.argv = process.argv.filter((it) => !it.includes('--verbose'));
const dbm = getInstance(true, {
cwd: __dirname,
config: { custom },
Expand Down
2 changes: 2 additions & 0 deletions src/test/e2e/api/admin/user/pat.e2e.test.ts
Expand Up @@ -15,6 +15,7 @@ let firstId;
tomorrow.setDate(tomorrow.getDate() + 1);

beforeAll(async () => {
getLogger.setMuteError(true);
db = await dbInit('user_pat', getLogger);
patStore = db.stores.patStore;
app = await setupAppWithAuth(db.stores);
Expand All @@ -28,6 +29,7 @@ beforeAll(async () => {
});

afterAll(async () => {
getLogger.setMuteError(false);
await app.destroy();
});

Expand Down

0 comments on commit 8fdb263

Please sign in to comment.