Suppress Test Logs (#6256)
* Suppress Test Logs This will reduce some of the noise in the tests logs. * replace deprecated buffer * remove deprecation warnings * fix geopoint * Fix GraphQL * postgres warnings
This commit is contained in:
@@ -13,6 +13,8 @@ export function createClient(uri, databaseOptions) {
|
||||
}
|
||||
|
||||
const initOptions = dbOptions.initOptions || {};
|
||||
initOptions.noWarnings = process && process.env.TESTING;
|
||||
|
||||
const pgp = require('pg-promise')(initOptions);
|
||||
const client = pgp(dbOptions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user