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:
@@ -2,6 +2,7 @@ const PostgresStorageAdapter = require('../lib/Adapters/Storage/Postgres/Postgre
|
||||
.default;
|
||||
const databaseURI =
|
||||
'postgres://localhost:5432/parse_server_postgres_adapter_test_database';
|
||||
const Config = require('../lib/Config');
|
||||
|
||||
const getColumns = (client, className) => {
|
||||
return client.map(
|
||||
@@ -16,8 +17,10 @@ const dropTable = (client, className) => {
|
||||
};
|
||||
|
||||
describe_only_db('postgres')('PostgresStorageAdapter', () => {
|
||||
const adapter = new PostgresStorageAdapter({ uri: databaseURI });
|
||||
let adapter;
|
||||
beforeEach(() => {
|
||||
const config = Config.get('test');
|
||||
adapter = config.database.adapter;
|
||||
return adapter.deleteAllClasses();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user