1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

feat: disable verbosity from db-migrate (#3301)

This commit is contained in:
Mateusz Kwasniewski 2023-03-13 10:12:43 +01:00 committed by GitHub
parent ca02ca794a
commit 8fdb263d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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 },

View File

@ -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);
@ -28,6 +29,7 @@ beforeAll(async () => {
});
afterAll(async () => {
getLogger.setMuteError(false);
await app.destroy();
});