Browse Source

test(server): Remove unwanted logging from e2e tests

Michael Bromley 7 years ago
parent
commit
66a43baa16
2 changed files with 0 additions and 7 deletions
  1. 0 1
      server/e2e/product.e2e-spec.ts
  2. 0 6
      server/mock-data/clear-all-tables.ts

+ 0 - 1
server/e2e/product.e2e-spec.ts

@@ -47,7 +47,6 @@ describe('Product resolver', () => {
 
     beforeAll(async () => {
         const token = await server.init({
-            logging: true,
             disableAuth: true,
             productCount: 20,
             customerCount: 1,

+ 0 - 6
server/mock-data/clear-all-tables.ts

@@ -17,12 +17,6 @@ export async function clearAllTables(connectionOptions: ConnectionOptions, loggi
     }
     try {
         await connection.synchronize(true);
-        if (connectionOptions.type === 'sqljs') {
-            console.log(
-                `tables in "${connection.options.name}": `,
-                await connection.query('SELECT * FROM sqlite_master'),
-            );
-        }
     } catch (err) {
         console.error('Error occurred when attempting to clear tables!');
         console.error(err);