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:
parent
ca02ca794a
commit
8fdb263d64
@ -11,6 +11,8 @@ export async function migrateDb({ db }: IUnleashConfig): Promise<void> {
|
|||||||
connectionTimeoutMillis: secondsToMilliseconds(10),
|
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, {
|
const dbm = getInstance(true, {
|
||||||
cwd: __dirname,
|
cwd: __dirname,
|
||||||
config: { custom },
|
config: { custom },
|
||||||
|
@ -15,6 +15,7 @@ let firstId;
|
|||||||
tomorrow.setDate(tomorrow.getDate() + 1);
|
tomorrow.setDate(tomorrow.getDate() + 1);
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
|
getLogger.setMuteError(true);
|
||||||
db = await dbInit('user_pat', getLogger);
|
db = await dbInit('user_pat', getLogger);
|
||||||
patStore = db.stores.patStore;
|
patStore = db.stores.patStore;
|
||||||
app = await setupAppWithAuth(db.stores);
|
app = await setupAppWithAuth(db.stores);
|
||||||
@ -28,6 +29,7 @@ beforeAll(async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
getLogger.setMuteError(false);
|
||||||
await app.destroy();
|
await app.destroy();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user